@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f1219;
    --bg-secondary: #161b28;
    --bg-tertiary: #1e2538;
    --bg-card: #222b3d;
    --bg-hover: #2a3548;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --border-color: #2d3748;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 0.5s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::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-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.top-bar {
    background: #0d1117;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 4px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent-primary);
    color: white;
}

.top-bar-text {
    color: var(--text-secondary);
    font-size: 13px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
}

.top-bar-right a:hover {
    color: var(--text-primary);
}

.header {
    background: var(--bg-secondary);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.logo span {
    color: var(--text-primary);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
    transition: var(--transition);
}

.lang-switch:hover {
    background: var(--bg-hover);
}

.lang-switch img {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

.search-box {
    flex: 1;
    max-width: 450px;
    position: relative;
}

.search-box form {
    display: flex;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 11px 50px 11px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-box button:hover {
    color: var(--text-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.header-auth:hover {
    color: var(--text-primary);
}

.header-auth i {
    font-size: 20px;
}

.header-auth .auth-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-auth small {
    font-size: 11px;
    color: var(--text-muted);
}

.header-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50px;
    color: var(--success);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.header-balance:hover {
    background: rgba(16, 185, 129, 0.25);
}

.header-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.header-icon:hover {
    color: var(--text-primary);
}

.header-icon .notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--danger);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-dropdown-wrapper {
    position: relative;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.header-avatar:hover {
    border-color: var(--accent-secondary);
    transform: scale(1.05);
}

.header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-weight: 700;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-user-info {
    flex: 1;
    min-width: 0;
}

.dropdown-username {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-balance {
    font-size: 13px;
    color: var(--success);
    font-weight: 500;
}

.dropdown-menu {
    padding: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.dropdown-item.highlight {
    background: var(--accent-gradient);
    color: white;
    margin-bottom: 4px;
}

.dropdown-item.highlight:hover {
    opacity: 0.9;
}

.dropdown-item.logout {
    color: var(--danger);
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.notification-wrapper {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    max-height: 450px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
}

.notification-header span {
    font-weight: 600;
    font-size: 15px;
}

.mark-all-btn {
    background: transparent;
    border: none;
    color: var(--accent-primary);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s;
}

.mark-all-btn:hover {
    color: var(--accent-secondary);
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.3s;
}

.notification-item:hover {
    background: var(--bg-hover);
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.1);
}

.notification-item.unread:hover {
    background: rgba(99, 102, 241, 0.15);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 14px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.notification-text {
    font-size: 13px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.notification-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.notification-empty p {
    font-size: 14px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.user-dropdown .divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.main-nav {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    overflow-x: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.nav-item.active {
    background: var(--accent-gradient);
    color: white;
    border-color: var(--accent-secondary);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.nav-item i {
    font-size: 16px;
}

.hero-section {
    padding: 40px 0;
}

.hero-section-new {
    padding: 30px 0;
}

.hero-banner {
    background: linear-gradient(135deg, rgba(22, 26, 46, 0.95) 0%, rgba(26, 30, 52, 0.98) 100%);
    border-radius: var(--radius-xl);
    padding: 50px 60px;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
    animation: heroPulse 4s ease-in-out infinite, heroRotate 20s linear infinite;
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: heroPulse 5s ease-in-out infinite 1s, heroRotate 25s linear infinite reverse;
    pointer-events: none;
}

@keyframes heroRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes heroPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.1) rotate(180deg);
    }
}

.hero-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    color: #10B981;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.hero-rating-badge i {
    font-size: 16px;
}

.hero-center-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-center-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero-center-content h1 span {
    color: var(--accent-primary);
}

.hero-center-content p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-btn {
    padding: 14px 32px;
    font-size: 15px;
    border-radius: 12px;
}

.hero-btn i {
    margin-right: 8px;
}

.hero-mini-sliders {
    position: absolute;
    bottom: 25px;
    right: 25px;
    display: flex;
    gap: 16px;
    z-index: 3;
}

.hero-mini-card {
    width: 180px;
    height: 120px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-mini-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.4), transparent, rgba(139, 92, 246, 0.4), transparent);
    animation: rotateGlow 4s linear infinite;
    z-index: -1;
}

.hero-mini-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-card);
    border-radius: calc(var(--radius-lg) - 2px);
    z-index: -1;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-mini-card:hover {
    border-color: var(--accent-primary);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-mini-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-hover));
}

.hero-mini-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    color: white;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 30px 20px 100px;
        min-height: 320px;
    }

    .hero-banner::before,
    .hero-banner::after {
        width: 200%;
        height: 200%;
        top: -50%;
        left: -50%;
        right: auto;
        bottom: auto;
    }

    .hero-banner::before {
        animation: heroPulse 3s ease-in-out infinite, heroRotate 15s linear infinite;
    }

    .hero-banner::after {
        animation: heroPulse 4s ease-in-out infinite 0.5s, heroRotate 18s linear infinite reverse;
    }

    .hero-center-content h1 {
        font-size: 28px;
    }

    .hero-center-content p {
        font-size: 14px;
    }

    .hero-rating-badge {
        font-size: 12px;
        padding: 8px 14px;
    }

    .hero-mini-sliders {
        bottom: 15px;
        right: auto;
        left: auto;
        width: calc(100% - 30px);
        margin: 0 15px;
        justify-content: space-between;
    }

    .hero-mini-card {
        width: 110px;
        height: 80px;
    }

    .hero-mini-card:first-child {
        margin-right: auto;
    }

    .hero-mini-card:last-child {
        margin-left: auto;
    }

    .hero-mini-card:only-child {
        margin: 0 auto;
    }

    .hero-mini-title {
        font-size: 9px;
        padding: 4px 6px;
    }
}

.hero-slider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hero-main {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    align-items: center;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.hero-main::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.1;
    border-radius: 50% 0 0 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

.hero-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero-images .hero-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 200px;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-images .hero-card:hover {
    transform: scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-card-placeholder {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card-placeholder::after {
    content: '';
    width: 50px;
    height: 50px;
    background: var(--bg-hover);
    border-radius: 12px;
}

.hero-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.categories-section {
    padding: 20px 0;
}

.category-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}

.category-tabs:active {
    cursor: grabbing;
}

.category-tabs.dragging {
    scroll-behavior: auto;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.category-tab:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.category-tab.active {
    background: var(--accent-gradient);
    color: white;
    border-color: var(--accent-secondary);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.category-tab i {
    font-size: 18px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
}

.popup-modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.7) translateY(50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    position: relative;
}

.popup-overlay.active .popup-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

.popup-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popup-content {
    padding: 24px;
    text-align: center;
}

.popup-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.popup-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.popup-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.popup-dont-show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.popup-dont-show:hover {
    color: var(--text-secondary);
}

.popup-dont-show input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-primary);
}

.categories-section {
    padding: 30px 0;
}

.category-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow-x: auto;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-tab:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.category-tab.active {
    background: var(--accent-gradient);
    color: white;
    border-color: var(--accent-secondary);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.category-tab i {
    font-size: 18px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
}

.section-link {
    color: var(--accent-primary);
    font-size: 14px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--accent-primary);
}

.product-card:active {
    transform: translateY(-4px) scale(1.01);
}

.product-image {
    position: relative;
    height: 180px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.product-price-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
}

.product-category-tag {
    display: none;
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
    align-items: center;
    gap: 4px;
}

.product-category-tag i {
    color: var(--accent-primary);
    font-size: 10px;
}

.product-content {
    padding: 16px;
}

.product-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.product-category {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.product-stock {
    font-size: 12px;
    color: var(--success);
}

.product-stock.out {
    color: var(--danger);
}

.product-stock-mobile {
    display: none;
    font-size: 12px;
    color: var(--success);
    margin-bottom: 8px;
}

.product-stock-mobile.out {
    color: var(--danger);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
}

.product-price small {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.product-btn:hover {
    background: var(--accent-gradient);
    color: white;
}

.announcement-banner {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 4px solid var(--accent-primary);
}

.announcement-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.announcement-content {
    flex: 1;
}

.announcement-content h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.announcement-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 16px 0 20px;
    font-size: 14px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transform: scale(0.7) translateY(50px) rotateX(10deg);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    transform-origin: center center;
}

.modal::-webkit-scrollbar {
    display: none;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
}

.modal-overlay.closing {
    opacity: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
}

.modal-overlay.closing .modal {
    transform: scale(0.8) translateY(-30px);
    opacity: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    max-width: 420px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--info);
    animation: toastProgress 4s linear forwards;
}

.toast.success::before {
    background: var(--success);
}

.toast.error::before {
    background: var(--danger);
}

.toast.warning::before {
    background: var(--warning);
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.toast.success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.toast.warning .toast-icon {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.toast.info .toast-icon {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.toast.removing {
    animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    to {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 18, 25, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-spinner::before {
    content: '';
    width: 56px;
    height: 56px;
    border: 3px solid transparent;
    border-top-color: var(--accent-primary);
    border-right-color: var(--accent-secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner::after {
    content: 'Yükleniyor...';
    color: var(--text-secondary);
    font-size: 14px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination button {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.pagination button.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 14px;
}

.balance-display i {
    color: var(--success);
}

.balance-amount {
    font-weight: 600;
    color: var(--success);
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.purchase-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 12, 20, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.purchase-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.purchase-loading-content {
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

.purchase-loading-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: pulse-glow 2s ease-in-out infinite;
    transition: background 0.5s ease;
}

.purchase-loading-icon i {
    font-size: 40px;
    color: white;
    animation: bounce-soft 1s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    }

    50% {
        box-shadow: 0 0 60px rgba(99, 102, 241, 0.8);
    }
}

@keyframes bounce-soft {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.purchase-loading-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.purchase-loading-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.purchase-loading-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 32px;
}

.purchase-loading-progress {
    height: 100%;
    width: 0;
    background: var(--accent-gradient);
    border-radius: 10px;
    animation: loading-progress 2.5s ease-in-out forwards;
}

@keyframes loading-progress {
    0% {
        width: 0;
    }

    30% {
        width: 40%;
    }

    60% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

.purchase-loading-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.purchase-loading-steps .step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.purchase-loading-steps .step.active {
    opacity: 1;
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.15);
}

.purchase-loading-steps .step.active i {
    color: var(--success);
}

.purchase-loading-steps .step i {
    width: 20px;
    text-align: center;
}

@media (max-width: 1200px) {
    .hero-slider {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .top-bar-text {
        display: none;
    }

    .search-box {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .mobile-menu-btn {
        display: none;
    }

    .header {
        padding: 12px 0;
        background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(22, 27, 40, 0.98) 100%);
    }

    .header-content {
        flex-wrap: nowrap;
        gap: 12px;
        align-items: center;
    }

    .logo {
        font-size: 18px;
        flex-shrink: 0;
    }

    .search-box {
        flex: 1;
        max-width: none;
        min-width: 0;
        order: 0;
        margin-top: 0;
    }

    .search-box input {
        padding: 10px 45px 10px 16px;
        font-size: 13px;
        border-radius: 25px;
    }

    .lang-switch {
        display: flex;
        padding: 6px 10px;
        font-size: 12px;
    }

    .lang-switch img {
        width: 18px;
        height: 12px;
    }

    .header-auth .auth-text {
        display: flex;
    }

    .header-auth .auth-text span {
        font-size: 12px;
    }

    .header-auth .auth-text small {
        font-size: 10px;
    }

    .header-balance {
        display: flex;
        width: auto;
        height: auto;
        padding: 8px 12px;
        border-radius: 50px;
        font-size: 13px;
    }

    .header-balance span {
        display: inline;
    }

    .header-right {
        gap: 8px;
        margin-left: auto;
        flex-shrink: 0;
    }

    .header-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .header-avatar {
        width: 38px;
        height: 38px;
    }

    .nav-content {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 10px 0;
        gap: 10px;
    }

    .nav-content::-webkit-scrollbar {
        display: none;
    }

    .nav-item {
        padding: 10px 18px;
        font-size: 13px;
        border-radius: var(--radius-md);
    }

    .user-dropdown,
    .notification-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        bottom: auto;
        left: auto;
        right: 0;
        width: 280px;
        border-radius: var(--radius-lg);
        max-height: 70vh;
        overflow-y: auto;
    }

    .notification-dropdown {
        width: 300px;
        max-height: 60vh;
    }

    .notification-header {
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--bg-card);
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-main {
        padding: 24px;
        min-height: 250px;
    }

    .hero-images {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-brand .social-links {
        justify-content: center;
    }

    .footer-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .footer-links li {
        margin-bottom: 6px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 16px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .modal {
        margin: 16px;
        max-width: calc(100% - 32px);
    }

    .header-actions {
        gap: 8px;
    }

    .user-btn span.user-name-display {
        display: none;
    }

    .category-tabs {
        padding: 12px;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 16px;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .category-tab {
        padding: 10px 16px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .section-title {
        font-size: 20px;
    }

    .logo {
        font-size: 18px;
    }

    .header-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .header-avatar {
        width: 38px;
        height: 38px;
    }

    .notification-wrapper {
        position: static;
    }

    .main-nav {
        position: sticky;
        top: 60px;
        z-index: 999;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card .product-image {
        height: 120px;
    }

    .product-card .product-content {
        padding: 10px;
    }

    .product-card .product-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .product-card .product-meta {
        display: none;
    }

    .product-card .product-price-tag {
        display: none;
    }

    .product-card .product-category-tag {
        display: flex;
    }

    .product-card .product-footer {
        flex-direction: column;
        gap: 8px;
    }

    .product-card .product-price {
        font-size: 12px;
    }

    .product-card .product-actions {
        width: 100%;
    }

    .product-card .product-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 10px;
        font-size: 11px;
    }

    .logo span {
        display: inline;
        font-size: 16px;
    }

    .header-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .header-avatar {
        width: 34px;
        height: 34px;
    }

    .container {
        padding: 0 12px;
    }

    .dropdown-header {
        padding: 14px;
    }

    .dropdown-avatar {
        width: 42px;
        height: 42px;
    }

    .header-content {
        gap: 8px;
    }

    .header-right {
        gap: 2px;
    }

    .search-box {
        margin-top: 10px;
    }

    .search-box input {
        padding: 10px 45px 10px 14px;
        font-size: 13px;
    }

    .nav-item {
        padding: 6px 12px;
        font-size: 12px;
        gap: 6px;
    }

    .nav-item i {
        font-size: 14px;
    }

    .category-tab {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }

    .modal {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-header {
        padding: 16px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-overlay {
        padding: 16px;
        align-items: flex-start;
        padding-top: 60px;
        overflow-y: auto;
    }

    .modal {
        max-height: none;
        margin-bottom: 60px;
    }

    .form-input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .hero-main {
        padding: 20px;
        min-height: 200px;
    }

    .product-card {
        border-radius: var(--radius-md);
    }

    .product-image {
        height: 150px;
    }

    .product-content {
        padding: 12px;
    }

    .product-title {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-stock-mobile {
        display: block;
    }

    .product-meta {
        display: none;
    }

    .product-category-tag {
        display: flex;
    }

    .product-price-tag {
        display: none;
    }

    .section-title {
        font-size: 18px;
    }

    .notification-dropdown,
    .user-dropdown {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .notification-item {
        padding: 12px 14px;
    }

    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .header-balance {
        display: none;
    }

    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}