@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --primary-light: #f0f9ff;
    --secondary: #64748b;
    --secondary-hover: #475569;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    /* Increased for better PC utilization */
    margin: 32px auto;
    padding: 0 40px;
    width: 100%;
}

.auth {
    max-width: 480px;
}

/* Glassmorphism Card */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    animation: fadeSlideIn 0.5s ease-out;
    width: 100%;
}

h1,
h2,
h3 {
    color: var(--text-main);
    font-weight: 800;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

label {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}

input,
select,
textarea,
button,
.btn {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button,
.btn {
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

button:hover,
.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn.secondary {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    width: auto;
}

.btn.secondary:hover {
    background: var(--background);
    border-color: var(--secondary);
}

.btn.danger {
    background: var(--error);
}

.btn.danger:hover {
    background: #dc2626;
}

.alert {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Centralized Fancy Header */
.fancy-topbar {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 32px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fancy-topbar h1 {
    color: #fff;
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.fancy-topbar h1 i {
    color: #38bdf8;
    margin-right: 12px;
}

.fancy-topbar p {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 4px;
}

.topbar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.fancy-topbar .btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    width: auto;
    padding: 0 16px;
    height: 44px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
}

.fancy-topbar .btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.fancy-topbar .btn.secondary i {
    color: #38bdf8;
}

/* Notifications Badge in Header */
.notif-btn {
    position: relative;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.notif-count {
    background: #ef4444;
    color: #fff;
    border: 2px solid #1e293b;
    border-radius: 10px;
    min-width: 22px;
    height: 22px;
    font-size: 0.7rem;
    font-weight: 800;
    position: absolute;
    top: -5px;
    right: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notif-panel {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    width: 360px;
    max-width: calc(100vw - 48px);
    max-height: 480px;
    overflow: auto;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    border: 1px solid var(--border);
}

.notif-panel.show {
    display: block;
    animation: scaleZoom 0.2s ease-out;
}

.mobile-nav {
    display: none;
}

.notif-item {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

.notif-item:hover {
    background: var(--background);
}

.notif-item.unread {
    background: #fdf2f2;
    border-left: 4px solid var(--primary);
}

/* Home Layout */
.home-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.main-content {
    min-width: 0;
}

.side-panel {
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
}

.right-widget-panel {
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border);
}



.side-btn {
    background: transparent;
    color: var(--secondary);
    border: none;
    justify-content: flex-start;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.side-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    box-shadow: none;
    transform: none;
}

.side-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-md);
}

/* Action Cards */
.home-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.home-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border: 1px solid var(--border);
    text-align: center;
}

.home-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.home-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
}

.home-card h3 {
    margin-bottom: 8px;
}

.home-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Planner */
.month-select {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.planner-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.planner-head div {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 8px;
    text-align: center;
    font-weight: bold;
}

.planner-cell {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    min-height: 120px;
}

.planner-cell.dim {
    background: var(--background);
    opacity: 0.5;
}

.planner-cell strong {
    font-size: 1.125rem;
    color: var(--text-main);
}

.plan-normal,
.plan-extra {
    font-size: 0.75rem;
    margin: 4px 0;
    color: var(--secondary);
}

.planner-cell select,
.planner-cell input {
    margin-top: 6px;
    padding: 6px 8px;
    font-size: 0.75rem;
}

/* Animations */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleZoom {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes customRingBell {
    0% {
        transform: rotate(0);
    }

    10% {
        transform: rotate(15deg);
    }

    20% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(10deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(5deg);
    }

    60% {
        transform: rotate(-5deg);
    }

    70% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(0);
    }
}

.bell-animate {
    animation: customRingBell 1s infinite ease-in-out !important;
    display: inline-block !important;
    transform-origin: top center !important;
}

@media (max-width: 1024px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
}

/* Mobile Nav Animation */
@keyframes mobileNavAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}



@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translate(50%, -10px);
    }

    to {
        opacity: 1;
        transform: translate(50%, 0);
    }
}

/* Duty Sheet Table refinement */
.duty-sheet-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 16px;
}

.duty-sheet-table th,
.duty-sheet-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.duty-sheet-table th {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.duty-sheet-table tr:last-child td {
    border-bottom: none;
}

/* Shift Chips */
.shift-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.shift-chip {
    position: relative;
    user-select: none;
}

.shift-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.shift-chip label {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.813rem;
    color: var(--text-muted);
    transition: all 0.2s;
    margin: 0;
}

.shift-chip:hover label {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.shift-chip input:checked+label {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.shift-chip.leave-chip input:checked+label {
    background: var(--success);
    border-color: var(--success);
}

.shift-chip.extra-chip input:checked+label {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.shift-chip.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Auth Pages */
.auth-wrapper {
    display: flex;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    animation: fadeSlideIn 0.6s ease-out;
    margin: auto;
}

.auth-brand {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    padding: 60px 40px;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.auth-brand i {
    font-size: 4rem;
    margin-bottom: 24px;
}

.auth-brand h2 {
    color: #fff;
    font-size: 2rem;
}

.auth-form-wrap {
    padding: 60px 40px;
    width: 60%;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    font-size: 0.875rem;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Content Panels */
.content-panel {
    display: none;
}

.content-panel.active {
    display: block;
    animation: fadeSlideIn 0.4s ease-out;
}

/* Print Refinements */
@media print {
    body {
        background: #fff;
    }

    .container {
        margin: 0;
        max-width: 100%;
        padding: 0;
    }

    .fancy-topbar,
    .side-panel,
    .btn,
    button,
    .month-select,
    .action-row {
        display: none !important;
    }
}

/* Mobile & Tablet Refinements */
@media (max-width: 768px) {
    .container {
        margin: 0 auto;
        padding: 20px 16px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .fancy-topbar {
        padding: 24px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
        width: 100%;
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
        /* Updated premium dark gradient */
    }

    .topbar-actions {
        justify-content: center;
        width: 100%;
    }

    .home-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }

    .side-panel {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 0 !important;
        margin-bottom: 24px !important;
        width: 100% !important;
        order: 1 !important;
        /* Ensure Nav is at TOP */
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .side-btn {
        padding: 8px 8px !important;
        font-size: 0.75rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        min-height: 60px !important;
        background: var(--surface) !important;
        border: 1px solid var(--border) !important;
        border-radius: var(--radius-md) !important;
        box-shadow: var(--shadow-sm) !important;
        text-align: center !important;
        animation: mobileNavAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
        line-height: 1.3 !important;
    }

    .side-btn i {
        font-size: 1.1rem !important;
        margin: 0 !important;
    }

    .side-btn span {
        display: inline !important;
        margin-left: 2px !important;
        vertical-align: middle !important;
    }


    .side-btn.active {
        background: var(--primary) !important;
        color: #fff !important;
        border-color: var(--primary) !important;
    }


    .main-content {
        width: 100% !important;
        order: 2 !important;
        /* Ensure Content is below Nav */
    }

    .month-select {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .month-select>* {
        width: 100% !important;
        margin: 0 !important;
    }

    .action-row {
        flex-direction: column;
        gap: 12px;
    }

    .action-row .btn,
    .action-row button {
        width: 100% !important;
        margin: 0 !important;
    }

    /* Staggered animation delay for buttons */
    .side-btn:nth-child(1) {
        animation-delay: 0.05s;
    }

    .side-btn:nth-child(2) {
        animation-delay: 0.1s;
    }

    .side-btn:nth-child(3) {
        animation-delay: 0.15s;
    }

    .side-btn:nth-child(4) {
        animation-delay: 0.2s;
    }

    .side-btn:nth-child(5) {
        animation-delay: 0.25s;
    }

    .side-btn:nth-child(6) {
        animation-delay: 0.3s;
    }

    .side-btn:nth-child(7) {
        animation-delay: 0.35s;
    }

    .side-btn:nth-child(8) {
        animation-delay: 0.4s;
    }

    /* Auth Mobile harmonization */
    .auth-brand {
        background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    }

    .auth-wrapper {
        flex-direction: column;
    }

    .auth-brand,
    .auth-form-wrap {
        width: 100%;
        padding: 40px 24px;
    }

    .auth-brand i {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }

    .auth-brand h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0 auto;
        padding: 10px 8px 100px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .fancy-topbar {
        padding: 20px 16px;
        margin-bottom: 20px;
    }

    .card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .chips-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .shift-chip label {
        padding: 10px 8px;
        font-size: 0.75rem;
        text-align: center;
        justify-content: center;
    }

    .shift-chips {
        gap: 8px;
        justify-content: center;
    }
}

/* Dashboard Summary Polish */
.dashboard-summary-top {
    margin-bottom: 24px;
    animation: fadeSlideIn 0.4s ease-out;
}

@media (max-width: 768px) {
    .dashboard-summary-top {
        display: block !important;
    }

    .dashboard-summary-top .card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
    }

    .dashboard-summary-top .card>div:last-child {
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
    }
}

/* Modern Profile Styles */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.profile-header-card {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: #fff;
    padding: 40px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 32px;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
}

.profile-hero-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-header-info h2 {
    margin: 0;
    font-size: 1.75rem;
    color: #fff;
}

.profile-header-info p {
    margin: 4px 0 0 0;
    opacity: 0.9;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.profile-section-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.profile-section-card:hover {
    transform: translateY(-5px);
}

.profile-section-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.profile-section-card h3 i {
    color: var(--primary);
    width: 32px;
    height: 32px;
    background: #f0f9ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.profile-input-group {
    margin-bottom: 20px;
}

.profile-input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-input-group input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.2s;
    outline: none;
}

.profile-input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.profile-danger-zone {
    margin-top: 40px;
    background: #fffafa;
    border: 1px solid #fee2e2;
    border-radius: 24px;
    padding: 30px;
}

.floating-save-area {
    position: sticky;
    bottom: 20px;
    z-index: 100;
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.btn-floating-save {
    background: var(--primary);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-floating-save:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.5);
}

@media (max-width: 640px) {
    .profile-header-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .profile-hero-avatar {
        width: 80px;
        height: 80px;
    }
}

/* News Card Overflow Fix */
.news-item-card {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.news-item-card a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all;
    /* More aggressive for long URLs */
}
/* Mobile Announcement Banner */
.mobile-ad-banner {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    color: #fff;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeSlideIn 0.5s ease-out;
}

.mobile-ad-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.ad-icon-wrap {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.ad-content-wrap {
    flex-grow: 1;
}

.ad-content-wrap h4 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
}

.ad-content-wrap p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.ad-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.ad-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ad-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.ad-mute-btn {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.ad-mute-btn:hover {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

@media (max-width: 768px) {
    .mobile-ad-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 24px 20px;
    }
    .ad-actions-wrap {
        width: 100%;
        align-items: center;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    .ad-close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
    }
}
