/* Modern Dashboard Styles */
:root {
    --cprimary-color: #ff8941;
    --cprimary-dark: #ff6b35;
    --csecondary-color: #f1f5f9;
    --csuccess-color: #10b981;
    --cwarning-color: #f59e0b;
    --cdanger-color: #ef4444;
    --cinfo-color: #06b6d4;
    --cdark-color: #1e293b;
    --clight-color: #f8fafc;
    --cborder-color: #e2e8f0;
    --ctext-muted: #64748b;
    --cshadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --cshadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --cshadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --cshadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --cborder-radius: 12px;
    --cborder-radius-lg: 16px;
    --ctransition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Ads Page Styles */
.modern-dashboard {
    background: linear-gradient(135deg, #fff9f1 0%, #f8fafc 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

/* Modern Cards */
.modern-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--cborder-radius-lg);
    box-shadow: var(--cshadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    margin-bottom: 2rem;
}

.modern-card:hover {
    box-shadow: var(--cshadow-xl);
}

.card-header-modern {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--cborder-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
}

.card-header-modern h3,
.card-header-modern h4 {
    margin: 0;
    color: #ffffff;
    font-weight: 600;
}

.card-header-modern h3 i,
.card-header-modern h4 i {
    color: #ffffff;
    margin-right: 0.5rem;
}

.header-content p {
    margin: 0.25rem 0 0 0;
    color: #ffffff;
    font-size: 0.9rem;
}

.header-icon {
    font-size: 2rem;
    color: var(--cprimary-color);
    opacity: 0.7;
}

.card-body-modern {
    padding: 2rem;
}

/* Ad Container */
.ad-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--cborder-radius);
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Loading States */
.loading-state,
.no-ad-state,
.error-state,
.warning-state,
.info-state,
.success-state,
.watching-state {
    text-align: center;
    padding: 3rem 2rem;
}

.loading-state .modern-spinner,
.no-ad-state .no-ad-icon,
.error-state .error-icon,
.warning-state .warning-icon,
.info-state .info-icon,
.success-state .success-icon,
.watching-state .watching-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--cprimary-color);
}

.modern-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.spinner-ring {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cprimary-color);
    animation: spin 1.4s ease-in-out infinite both;
}

.spinner-ring:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-ring:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes spin {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Modern Ad Items */
.modern-ad {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.ad-content {
    background: white;
    border-radius: var(--cborder-radius);
    overflow: hidden;
    box-shadow: var(--cshadow-md);
}

.ad-image-container {
    position: relative;
    overflow: hidden;
}

.ad-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--ctransition);
}

.ad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--ctransition);
}

.ad-image-container:hover .ad-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--cprimary-color);
    cursor: pointer;
    transition: var(--ctransition);
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
}

.ad-video-container {
    position: relative;
}

.ad-video {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.ad-text-container {
    padding: 2rem;
    text-align: center;
}

.ad-title {
    color: var(--cdark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.ad-description {
    color: var(--ctext-muted);
    margin-bottom: 0;
}

.ad-actions {
    padding: 1.5rem;
    text-align: center;
    background: #f8fafc;
}

/* Modern Buttons */
.btn-modern {
    border-radius: var(--cborder-radius);
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: none;
    transition: var(--ctransition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern.btn-primary {
    background: linear-gradient(135deg, var(--cprimary-color), var(--cprimary-dark));
    color: white;
}

.btn-modern.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--cshadow-lg);
}

.btn-modern.btn-success {
    background: linear-gradient(135deg, var(--csuccess-color), #059669);
    color: white;
}

.btn-modern.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--cshadow-lg);
}

.btn-watch {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* Rules Section */
.rules-section {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(16, 185, 129, 0.05));
    border-radius: var(--cborder-radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.rules-section h6 {
    color: var(--cdark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.rules-section h6 i {
    color: var(--cinfo-color);
    margin-right: 0.5rem;
}

.rules-grid {
    display: grid;
    gap: 1rem;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: var(--cborder-radius);
    box-shadow: var(--cshadow-sm);
}

.rule-item i {
    color: var(--cprimary-color);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.rule-item span {
    color: var(--ctext-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Stats Card */
.stats-card .stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--cborder-color);
}

.stats-card .stat-item:last-child {
    border-bottom: none;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white !important;
}

.stat-icon.daily-bonus {
    background: linear-gradient(135deg, var(--csuccess-color), #059669);
}

.stat-icon.ad-view {
    background: linear-gradient(135deg, var(--cprimary-color), var(--cprimary-dark));
}

.stat-icon.bonus-amount {
    background: linear-gradient(135deg, var(--cwarning-color), #d97706);
}

.stat-content h6 {
    margin: 0 0 0.25rem 0;
    color: var(--cdark-color);
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    /* text-transform: uppercase; */
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--csuccess-color);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--cwarning-color);
}

.status-badge.secondary {
    background: rgba(100, 116, 139, 0.1);
    color: var(--ctext-muted);
}

.bonus-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cwarning-color);
}

.next-bonus {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(217, 119, 6, 0.05));
    border-radius: var(--cborder-radius);
    margin-top: 1rem;
    color: var(--ctext-muted);
    font-size: 0.9rem;
}

.next-bonus i {
    color: var(--cwarning-color);
}

/* Wallet Card */
.wallet-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 137, 65, 0.1);
}

.wallet-icon {
    font-size: 3rem;
    color: #1f7c9f;
    margin-bottom: 1rem;
}

.wallet-card h5 {
    color: #1f7c9f;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.wallet-card p {
    color: #1f7c9f;
    margin-bottom: 1.5rem;
}

/* Modern Alerts */
.alert-modern {
    border-radius: var(--cborder-radius);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--cshadow-sm);
}

.alert-modern i {
    font-size: 1.2rem;
}

.alert-modern.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--csuccess-color);
    border-left: 4px solid var(--csuccess-color);
}

.alert-modern.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--cdanger-color);
    border-left: 4px solid var(--cdanger-color);
}

/* Watching Animation */
.watching-animation {
    position: relative;
    margin-bottom: 2rem;
}

.watching-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    border: 2px solid var(--cprimary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.ring-1 {
    width: 60px;
    height: 60px;
    top: -30px;
    left: -30px;
}

.ring-2 {
    width: 80px;
    height: 80px;
    top: -40px;
    left: -40px;
    animation-delay: 0.5s;
}

.ring-3 {
    width: 100px;
    height: 100px;
    top: -50px;
    left: -50px;
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Modern Progress */
.modern-progress {
    margin-top: 2rem;
}

.progress-bar-modern {
    width: 100%;
    height: 8px;
    background: rgba(255, 137, 65, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cprimary-color), var(--cprimary-dark));
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--ctext-muted);
    font-weight: 600;
}

/* Success Animation */
.success-animation {
    position: relative;
    margin-bottom: 2rem;
}

.success-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--csuccess-color);
    border-radius: 50%;
    animation: particle 1s ease-out infinite;
}

.particle:nth-child(1) {
    top: -20px;
    left: -20px;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: -20px;
    right: -20px;
    animation-delay: 0.2s;
}

.particle:nth-child(3) {
    bottom: -20px;
    left: -20px;
    animation-delay: 0.4s;
}

.particle:nth-child(4) {
    bottom: -20px;
    right: -20px;
    animation-delay: 0.6s;
}

@keyframes particle {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1) translateY(-30px);
        opacity: 0;
    }
}

/* Bonus Display */
.bonus-breakdown,
.bonus-single {
    background: rgba(16, 185, 129, 0.05);
    border-radius: var(--cborder-radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.bonus-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.bonus-item:last-child {
    border-bottom: none;
}

.bonus-total {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--csuccess-color);
    border-top: 2px solid var(--csuccess-color);
    margin-top: 1rem;
}

.bonus-single {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--csuccess-color);
}

.bonus-item i,
.bonus-total i,
.bonus-single i {
    color: var(--csuccess-color);
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-dashboard {
        padding: 1rem 0;
    }

    .dashboard-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    .card-header-modern,
    .card-body-modern {
        padding: 1.5rem;
    }

    .ad-container {
        min-height: 300px;
    }

    .ad-image,
    .ad-video {
        height: 250px;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .btn-watch {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Modern Dashboard Container */
.modern-dashboard {
    background: #fff9f1;
    min-height: 100vh;
    padding: 2rem 0;
}

/* Dashboard Header */
.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--cborder-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--cshadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cprimary-color), var(--cprimary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.dashboard-header .subtitle {
    color: var(--ctext-muted);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Modern Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Responsive stats grid */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--cborder-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--ctransition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cprimary-color), var(--cprimary-dark));
}

.stat-card:hover {
    transform: none !important;
    box-shadow: var(--cshadow-lg) !important;
}

.stat-card.success::before {
    background: linear-gradient(90deg, var(--csuccess-color), #059669);
}

.stat-card.warning::before {
    background: linear-gradient(90deg, var(--cwarning-color), #d97706);
}

.stat-card.danger::before {
    background: linear-gradient(90deg, var(--cdanger-color), #dc2626);
}

.stat-card.info::before {
    background: linear-gradient(90deg, var(--cinfo-color), #0891b2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--cborder-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.stat-icon.primary {
    background: linear-gradient(135deg, var(--cprimary-color), var(--cprimary-dark));
    color: white;
}

.stat-icon.success {
    background: linear-gradient(135deg, var(--csuccess-color), #059669);
    color: white;
}

.stat-icon.warning {
    background: linear-gradient(135deg, var(--cwarning-color), #d97706);
    color: white;
}

.stat-icon.danger {
    background: linear-gradient(135deg, var(--cdanger-color), #dc2626);
    color: white;
}

.stat-icon.info {
    background: linear-gradient(135deg, var(--cinfo-color), #0891b2);
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cdark-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--ctext-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Sidebar */
.modern-sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--cborder-radius-lg);
    padding: 2rem;
    box-shadow: var(--cshadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.user-profile {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--cborder-color);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 4px solid var(--cprimary-color);
    box-shadow: var(--cshadow-md);
}

.user-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cdark-color);
    margin-bottom: 0.5rem;
}

.user-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-type.paid {
    background: linear-gradient(135deg, var(--csuccess-color), #059669);
    color: white;
}

.user-type.free {
    background: linear-gradient(135deg, var(--cwarning-color), #d97706);
    color: white;
}

/* Modern Navigation */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--ctext-muted);
    text-decoration: none;
    border-radius: var(--cborder-radius);
    transition: var(--ctransition);
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--cprimary-color);
    transform: translateX(5px);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--cprimary-color), var(--cprimary-dark));
    color: white;
    box-shadow: var(--cshadow-md);
}

/* Referral Link özel stili - daha az belirgin yap */
.nav-link[href*="referral"] {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--cprimary-color) !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
}

.nav-link[href*="referral"]:hover {
    background: rgba(99, 102, 241, 0.15) !important;
    color: var(--cprimary-dark) !important;
}

.nav-link[href*="referral"].active {
    background: linear-gradient(135deg, var(--cprimary-color), var(--cprimary-dark)) !important;
    color: white !important;
    border: 1px solid transparent !important;
}

.nav-link i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Modern Content Cards */
.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--cborder-radius-lg);
    padding: 1rem;
    box-shadow: var(--cshadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cborder-color);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cdark-color);
    margin: 0;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--cborder-radius);
    background: linear-gradient(135deg, var(--cprimary-color), var(--cprimary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Modern Tables */
.modern-table {
    background: white;
    border-radius: var(--cborder-radius);
    overflow: hidden;
    box-shadow: var(--cshadow-sm);
}

.modern-table table {
    width: 100%;
    margin: 0;
}

.modern-table th {
    background: var(--clight-color);
    color: var(--cdark-color);
    font-weight: 600;
    padding: 1rem;
    border: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-table td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid var(--cborder-color);
    vertical-align: middle;
}

.modern-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* Modern Badges */
.badge-modern {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: linear-gradient(135deg, var(--csuccess-color), #059669);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, var(--cdanger-color), #dc2626);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, var(--cwarning-color), #d97706);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #3686f7e3, #3183f7);
    color: white;
}

.text-info {
    color: #3183f7 !important;
}

/* Modern Buttons */
.btn-modern {
    padding: 0.75rem 1.5rem;
    border-radius: var(--cborder-radius);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--ctransition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-primary-modern {
    background: linear-gradient(135deg, var(--cprimary-color), var(--cprimary-dark));
    color: white !important;
    box-shadow: var(--cshadow-md);
    text-align: left;
}

.btn-primary-modern:hover {
    transform: none !important;
    box-shadow: var(--cshadow-lg);
    color: white;
}

.btn-secondary-modern {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--cborder-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-secondary-modern:hover {
    background: #4b5563;
    color: white;
    transform: none !important;
    box-shadow: var(--cshadow-lg);
}

/* Modern Input Groups */
.input-group-modern {
    position: relative;
    margin-bottom: 1rem;
}

.input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--cborder-color);
    border-radius: var(--cborder-radius);
    font-size: 1rem;
    transition: var(--ctransition);
    background: white;
}

.input-modern:focus {
    outline: none;
    border-color: var(--cprimary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-modern:disabled {
    background-color: #f8f9fa !important;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-copy {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--cprimary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: calc(var(--cborder-radius) - 2px);
    font-size: 0.9rem;
    transition: var(--ctransition);
}

.btn-copy:hover {
    background: var(--cprimary-dark);
    color: white;
}

/* Modern Notification Modal */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
    transition: opacity 0.3s ease-in-out;
}

.notification-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideInUp 0.3s ease-out;
}

.notification-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 12px;
    font-family: 'Quicksand', sans-serif;
}

.notification-modal-message {
    font-size: 1rem;
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.5;
}

.notification-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.notification-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.notification-btn-primary {
    background: #3b82f6;
    color: white;
}

.notification-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.notification-btn-secondary {
    background: #6b7280;
    color: white;
}

.notification-btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Modern Toast Notification System */
.toast-modern {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 400px;
    max-width: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border-left: 6px solid var(--csuccess-color);
    animation: slideInRight 0.5s ease-out;
    display: flex;
    align-items: center;
    padding: 24px;
    margin-bottom: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-modern .toast-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--csuccess-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.toast-modern .toast-icon i {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.toast-modern .toast-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast-modern .toast-message {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    font-family: 'Quicksand', sans-serif;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 280px;
}

.toast-modern .toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 22px;
    cursor: pointer;
    padding: 10px;
    margin-left: 20px;
    border-radius: 10px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10001;
    pointer-events: auto;
}

.toast-modern .toast-close:hover {
    color: #6b7280;
    background: #f3f4f6;
    transform: scale(1.1);
}

/* Toast Types */
.toast-modern.success {
    border-left-color: #22c55e;
}

.toast-modern.success .toast-icon {
    background: #22c55e;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.toast-modern.error {
    border-left-color: #ef4444;
}

.toast-modern.error .toast-icon {
    background: #ef4444;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.toast-modern.warning {
    border-left-color: #f59e0b;
}

.toast-modern.warning .toast-icon {
    background: #f59e0b;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.toast-modern.info {
    border-left-color: #3b82f6;
}

.toast-modern.info .toast-icon {
    background: #3b82f6;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.toast-modern.firebase {
    border-left-color: #ff6b35;
    background: linear-gradient(135deg, #fff 0%, #fff8f5 100%);
}

.toast-modern.firebase .toast-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

/* Responsive Toast */
@media (max-width: 768px) {
    .toast-modern {
        min-width: 320px;
        max-width: 90vw;
        right: 10px;
        left: 10px;
        padding: 20px;
    }

    .toast-modern .toast-icon {
        width: 48px;
        height: 48px;
        margin-right: 16px;
    }

    .toast-modern .toast-icon i {
        font-size: 20px;
    }

    .toast-modern .toast-message {
        font-size: 15px;
        max-width: 200px;
    }

    .toast-modern .toast-close {
        width: 32px;
        height: 32px;
        font-size: 20px;
        margin-left: 16px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

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

@keyframes slideInRight {
    from {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }

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

/* Settings Sections */
.settings-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--cborder-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--cshadow-md);
    border: 1px solid var(--border-color);
}

.settings-section h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ctext-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cprimary-color);
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
}

.setting-info h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ctext-color);
    margin-bottom: 0.25rem;
}

.setting-info p {
    font-size: 0.875rem;
    color: var(--ctext-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Notification Settings */
.notification-settings {
    padding: 1rem 0;
}

.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-info {
    flex: 1;
}

.notification-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ctext-color);
    margin-bottom: 0.25rem;
}

.notification-desc {
    font-size: 0.875rem;
    color: var(--ctext-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

.notification-action {
    flex-shrink: 0;
    margin-left: 1rem;
}

/* Modern Alert Styles */
.alert {
    position: relative;
    padding: 20px;
    margin-bottom: 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
}

.alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 16px 0 0 16px;
}

.alert i {
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.alert .btn-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    border-radius: 8px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.alert .btn-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

/* Alert Types */
.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-success::before {
    background: #22c55e;
}

.alert-success i {
    color: #22c55e;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-danger::before {
    background: #ef4444;
}

.alert-danger i {
    color: #ef4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-warning::before {
    background: #f59e0b;
}

.alert-warning i {
    color: #f59e0b;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
}

.alert-info::before {
    background: #3b82f6;
}

.alert-info i {
    color: #3b82f6;
}

/* Form Switch Styles */
.form-check-input {
    width: 3rem;
    height: 1.5rem;
    background-color: #e5e7eb;
    border: none;
    border-radius: 1rem;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: var(--cprimary-color);
    border-color: var(--cprimary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-check-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ctext-color);
    margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-dashboard {
        padding: 1rem 0;
    }

    .notification-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .notification-action {
        margin-left: 0;
        width: 100%;
    }

    .dashboard-header {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .modern-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}



/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--cprimary-color), var(--cprimary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--clight-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--cprimary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cprimary-dark);
}

/* Profile Page Specific Styles */
.info-section {
    margin-bottom: 2rem;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cdark-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cprimary-color);
    display: inline-block;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cborder-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--ctext-muted);
    min-width: 120px;
}

.info-value {
    font-weight: 600;
    color: var(--cdark-color);
    text-align: right;
    flex: 1;
}

/* Wallet Page Specific Styles */
.balance-card {
    background: linear-gradient(135deg, var(--csuccess-color), #059669);
    color: white;
    border-radius: var(--cborder-radius-lg);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--cshadow-lg);
}

.balance-amount {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.balance-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: var(--cborder-radius);
    margin-bottom: 0.5rem;
    box-shadow: var(--cshadow-sm);
    transition: var(--ctransition);
}

.transaction-item:hover {
    box-shadow: var(--cshadow-md);
    transform: none !important;
}

.transaction-info {
    display: flex;
    align-items: center;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.transaction-icon.income {
    background: linear-gradient(135deg, var(--csuccess-color), #059669);
    color: white;
}

.transaction-icon.expense {
    background: linear-gradient(135deg, var(--cdanger-color), #dc2626);
    color: white;
}

.transaction-details h6 {
    margin: 0;
    font-weight: 600;
    color: var(--cdark-color);
}

.transaction-details small {
    color: var(--ctext-muted);
}

.transaction-amount {
    font-weight: 700;
    font-size: 1.1rem;
}

.transaction-amount.positive {
    color: var(--csuccess-color);
}

.transaction-amount.negative {
    color: var(--cdanger-color);
}

/* Coupon Page Specific Styles */
.coupon-card {
    background: white;
    border-radius: var(--cborder-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--cshadow-md);
    border-left: 4px solid var(--cprimary-color);
    transition: var(--ctransition);
}

.coupon-card:hover {
    box-shadow: var(--cshadow-lg);
    transform: none !important;
}

.coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.coupon-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cprimary-color);
    font-family: 'Quicksand', sans-serif;
}

.coupon-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coupon-status.active {
    background: linear-gradient(135deg, var(--csuccess-color), #059669);
    color: white;
}

.coupon-status.used {
    background: linear-gradient(135deg, var(--ctext-muted), #64748b);
    color: white;
}

.coupon-status.expired {
    background: linear-gradient(135deg, var(--cdanger-color), #dc2626);
    color: white;
}

.coupon-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.coupon-detail {
    text-align: center;
}

.coupon-detail-label {
    font-size: 0.8rem;
    color: var(--ctext-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.coupon-detail-value {
    font-weight: 600;
    color: var(--cdark-color);
}

/* Referral Page Specific Styles */
.referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.referral-stat-card {
    background: white;
    border-radius: var(--cborder-radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--cshadow-md);
    transition: var(--ctransition);
}

.referral-stat-card:hover {
    box-shadow: var(--cshadow-lg);
    transform: none !important;
}

.referral-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cprimary-color);
    margin-bottom: 0.5rem;
}

.referral-stat-label {
    color: var(--ctext-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referral-link-card {
    background: linear-gradient(135deg, var(--cprimary-color), var(--cprimary-dark));
    color: white;
    border-radius: var(--cborder-radius-lg);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--cshadow-lg);
}

.referral-link-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: var(--cborder-radius);
    padding: 0.75rem 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.referral-link-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.referral-link-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Settings Page Specific Styles */
.settings-section {
    background: white;
    border-radius: var(--cborder-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--cshadow-md);
}

.settings-section h5 {
    color: var(--cdark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cprimary-color);
    display: inline-block;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--cborder-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.cas-flex {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.footer-top {
    padding: 70px;
}

.package-info {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    width: 200px;
    margin: auto;
    border-radius: 10px;
    padding: 10px;
    color: #fff;
    font-weight: 600;
}