/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #AD216E;
    --primary-dark: #8B1A58;
    --primary-light: #D4448A;
    --secondary: #E8659F;
    --success: #AD216E;
    --warning: #ffe600;
    --danger: #C0392B;
    --dark: #2D3436;
    --gray: #636E72;
    --light-gray: #DFE6E9;
    --bg: #FFFFFF;
    --white: #FFFFFF;
    --shadow: 0 8px 30px rgba(173, 33, 110, 0.15);
    --shadow-hover: 0 12px 40px rgba(173, 33, 110, 0.25);
    --radius: 16px;
    --radius-mobile: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --touch-target: 44px;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--dark);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 480px) {
    .container {
        padding: 0 20px;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== HEADER ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(108, 99, 255, 0.06);
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 12px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .header-content {
        padding: 14px 0;
        flex-wrap: nowrap;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.logo h1,
.logo p {
    margin: 0;
    text-decoration: none;
}

@media (min-width: 480px) {
    .logo {
        gap: 14px;
    }
}

.logo-img {
    width: 38px;
    height: 38px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

@media (min-width: 480px) {
    .logo-img {
        width: 44px;
        height: 44px;
    }
}

@media (min-width: 768px) {
    .logo-img {
        width: 50px;
        height: 50px;
    }
}

.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

@media (min-width: 480px) {
    .logo h1 {
        font-size: 19px;
    }
}

@media (min-width: 768px) {
    .logo h1 {
        font-size: 22px;
    }
}

.logo p {
    font-size: 9px;
    color: var(--gray);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}

@media (min-width: 480px) {
    .logo p {
        font-size: 10px;
    }
}

@media (min-width: 768px) {
    .logo p {
        font-size: 11px;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (min-width: 480px) {
    .nav-menu {
        gap: 12px;
    }
}

@media (min-width: 768px) {
    .nav-menu {
        gap: 20px;
        flex-wrap: nowrap;
    }
}

.user-name {
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .user-name {
        font-size: 13px;
        gap: 8px;
    }
}

@media (min-width: 768px) {
    .user-name {
        font-size: 14px;
    }
}

.user-name i {
    font-size: 16px;
}

@media (min-width: 768px) {
    .user-name i {
        font-size: 18px;
    }
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: 10px;
    white-space: nowrap;
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
}

@media (min-width: 480px) {
    .nav-link {
        font-size: 14px;
        padding: 8px 14px;
    }
}

@media (min-width: 768px) {
    .nav-link {
        padding: 8px 16px;
        min-height: auto;
    }
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(108, 99, 255, 0.08);
}

.nav-link:active {
    transform: scale(0.96);
}

.nav-link i {
    margin-right: 4px;
}

@media (min-width: 480px) {
    .nav-link i {
        margin-right: 6px;
    }
}

/* Mobile menu - horizontal scroll if needed */
@media (max-width: 767px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-menu {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 4px;
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
}

/* ===== BANNER ===== */
.banner {
    background: linear-gradient(135deg, #2D1B69 0%, #1A0A3E 50%, #0D0520 100%);
    padding: 40px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

@media (min-width: 480px) {
    .banner {
        padding: 50px 0;
    }
}

@media (min-width: 768px) {
    .banner {
        padding: 60px 0;
    }
}

@media (min-width: 992px) {
    .banner {
        padding: 80px 0;
    }
}

.banner::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .banner::before {
        width: 600px;
        height: 600px;
        top: -200px;
        right: -200px;
    }
}

.banner::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 101, 132, 0.1) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .banner::after {
        width: 400px;
        height: 400px;
        bottom: -150px;
        left: -150px;
    }
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 1;
    text-align: center;
}

@media (min-width: 992px) {
    .banner-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        text-align: left;
        align-items: center;
    }
}

.banner-text h2 {
    font-size: 14px;
    font-weight: 300;
    opacity: 0.8;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (min-width: 480px) {
    .banner-text h2 {
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .banner-text h2 {
        font-size: 18px;
    }
}

@media (min-width: 992px) {
    .banner-text h2 {
        font-size: 20px;
    }
}

.banner-text h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0 14px;
    line-height: 1.15;
}

@media (min-width: 480px) {
    .banner-text h1 {
        font-size: 34px;
    }
}

@media (min-width: 768px) {
    .banner-text h1 {
        font-size: 42px;
        margin: 10px 0 18px;
    }
}

@media (min-width: 992px) {
    .banner-text h1 {
        font-size: 52px;
        margin: 12px 0 20px;
    }
}

.banner-text h1 span {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-text p {
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 500px;
}

@media (min-width: 480px) {
    .banner-text p {
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .banner-text p {
        font-size: 17px;
        margin-bottom: 25px;
    }
}

@media (min-width: 992px) {
    .banner-text p {
        font-size: 18px;
        margin-bottom: 30px;
    }
}

@media (max-width: 991px) {
    .banner-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

.banner-text .btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 992px) {
    .banner-text .btn-group {
        justify-content: flex-start;
        gap: 15px;
    }
}

.banner-image {
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

@media (min-width: 992px) {
    .banner-image {
        order: 0;
    }
}

.brain-container {
    position: relative;
}

.brain-icon {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    position: relative;
}

@media (min-width: 480px) {
    .brain-icon {
        width: 180px;
        height: 180px;
        font-size: 100px;
    }
}

@media (min-width: 768px) {
    .brain-icon {
        width: 220px;
        height: 220px;
        font-size: 130px;
    }
}

@media (min-width: 992px) {
    .brain-icon {
        font-size: 160px;
        width: 280px;
        height: 280px;
    }
}

.brain-icon i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.2);
    animation: pulse-brain 2s ease-in-out infinite;
}

@media (min-width: 480px) {
    .brain-icon i {
        font-size: 75px;
    }
}

@media (min-width: 768px) {
    .brain-icon i {
        font-size: 95px;
    }
}

@media (min-width: 992px) {
    .brain-icon i {
        font-size: 120px;
    }
}

.brain-icon .circle-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(108, 99, 255, 0.2);
    animation: spin 10s linear infinite;
}

.brain-icon .circle-ring:nth-child(2) {
    width: 120%;
    height: 120%;
    border-color: rgba(255, 101, 132, 0.1);
    animation-duration: 15s;
    animation-direction: reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (min-width: 768px) {
    @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-15px); }
    }
}

@keyframes pulse-brain {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0.3; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.3px;
    min-height: var(--touch-target);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .btn {
        padding: 11px 26px;
        font-size: 15px;
        gap: 8px;
    }
}

@media (min-width: 768px) {
    .btn {
        padding: 12px 32px;
        font-size: 16px;
        min-height: auto;
    }
}

.btn:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
}

.btn i {
    font-size: 14px;
}

@media (min-width: 768px) {
    .btn i {
        font-size: 16px;
    }
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3);
}

@media (hover: none) {
    .btn-primary:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    }
    
    .btn-primary:active {
        transform: scale(0.96);
        box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3);
    }
}

.btn-primary-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: white;
}

@media (hover: none) {
    .btn-primary-outline:hover {
        transform: none;
    }
    
    .btn-primary-outline:active {
        background: rgba(255, 255, 255, 0.1);
        border-color: white;
    }
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark);
}

.btn-secondary:hover {
    background: #C8CDD6;
    transform: translateY(-2px);
}

@media (hover: none) {
    .btn-secondary:hover {
        transform: none;
    }
    
    .btn-secondary:active {
        background: #C8CDD6;
    }
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.4);
    color: white;
}

@media (hover: none) {
    .btn-gradient:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
    }
    
    .btn-gradient:active {
        transform: scale(0.96);
        box-shadow: 0 12px 40px rgba(108, 99, 255, 0.4);
    }
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #27AE60);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

@media (hover: none) {
    .btn-success:hover {
        transform: none;
    }
    
    .btn-success:active {
        transform: scale(0.96);
        box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
    }
}

.btn-lg {
    padding: 12px 30px;
    font-size: 15px;
}

@media (min-width: 480px) {
    .btn-lg {
        padding: 13px 36px;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .btn-lg {
        padding: 15px 44px;
        font-size: 18px;
    }
}

.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
    min-height: 36px;
}

@media (min-width: 768px) {
    .btn-sm {
        padding: 8px 20px;
        font-size: 13px;
        min-height: auto;
    }
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 40px 0 30px;
}

@media (min-width: 480px) {
    .categories {
        padding: 50px 0 40px;
    }
}

@media (min-width: 768px) {
    .categories {
        padding: 60px 0 50px;
    }
}

@media (min-width: 992px) {
    .categories {
        padding: 80px 0 60px;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .section-title {
        margin-bottom: 40px;
    }
}

@media (min-width: 992px) {
    .section-title {
        margin-bottom: 50px;
    }
}

.section-title h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

@media (min-width: 480px) {
    .section-title h2 {
        font-size: 30px;
    }
}

@media (min-width: 768px) {
    .section-title h2 {
        font-size: 34px;
    }
}

@media (min-width: 992px) {
    .section-title h2 {
        font-size: 38px;
    }
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

@media (min-width: 768px) {
    .section-title h2::after {
        bottom: -10px;
        width: 60px;
        height: 4px;
    }
}

.section-title p {
    color: var(--gray);
    font-size: 14px;
    margin-top: 14px;
}

@media (min-width: 480px) {
    .section-title p {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .section-title p {
        font-size: 16px;
        margin-top: 16px;
    }
}

@media (min-width: 992px) {
    .section-title p {
        font-size: 18px;
        margin-top: 18px;
    }
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 25px;
    }
}

@media (min-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 30px;
    }
}

.category-card {
    background: var(--white);
    padding: 25px 20px 22px;
    border-radius: var(--radius-mobile);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(108, 99, 255, 0.06);
    position: relative;
    overflow: hidden;
}

@media (min-width: 480px) {
    .category-card {
        padding: 28px 22px 25px;
    }
}

@media (min-width: 768px) {
    .category-card {
        padding: 32px 24px 28px;
        border-radius: var(--radius);
    }
}

@media (min-width: 992px) {
    .category-card {
        padding: 35px 25px 30px;
    }
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

@media (min-width: 768px) {
    .category-card:hover {
        transform: translateY(-10px);
    }
}

@media (hover: none) {
    .category-card:hover {
        transform: none;
    }
    
    .category-card:active {
        transform: scale(0.98);
    }
}

.category-card:hover::before {
    opacity: 1;
}

.category-icon {
    font-size: 38px;
    color: var(--primary);
    margin-bottom: 12px;
    display: inline-block;
    background: rgba(108, 99, 255, 0.08);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    transition: var(--transition);
}

@media (min-width: 480px) {
    .category-icon {
        font-size: 42px;
        width: 68px;
        height: 68px;
        line-height: 68px;
    }
}

@media (min-width: 768px) {
    .category-icon {
        font-size: 48px;
        width: 75px;
        height: 75px;
        line-height: 75px;
        margin-bottom: 14px;
    }
}

@media (min-width: 992px) {
    .category-icon {
        font-size: 52px;
        width: 80px;
        height: 80px;
        line-height: 80px;
        margin-bottom: 16px;
    }
}

.category-card:hover .category-icon {
    background: rgba(108, 99, 255, 0.15);
    transform: scale(1.05) rotate(-5deg);
}

@media (hover: none) {
    .category-card:hover .category-icon {
        background: rgba(108, 99, 255, 0.08);
        transform: none;
    }
}

.category-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

@media (min-width: 768px) {
    .category-card h3 {
        font-size: 19px;
        margin-bottom: 7px;
    }
}

@media (min-width: 992px) {
    .category-card h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }
}

.category-card p {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

@media (min-width: 480px) {
    .category-card p {
        font-size: 14px;
        margin-bottom: 14px;
    }
}

@media (min-width: 992px) {
    .category-card p {
        margin-bottom: 16px;
    }
}

.category-card .badge {
    display: inline-block;
    padding: 3px 14px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

@media (min-width: 768px) {
    .category-card .badge {
        padding: 4px 16px;
        font-size: 12px;
    }
}

.category-card .btn {
    margin-top: 8px;
}

@media (min-width: 768px) {
    .category-card .btn {
        margin-top: 10px;
    }
}

/* ===== PACKAGES ===== */
.packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 768px) {
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 25px;
    }
}

@media (min-width: 992px) {
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

.package-card {
    background: var(--white);
    padding: 22px 20px;
    border-radius: var(--radius-mobile);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(108, 99, 255, 0.06);
}

@media (min-width: 480px) {
    .package-card {
        padding: 26px 22px;
    }
}

@media (min-width: 768px) {
    .package-card {
        padding: 28px 24px;
        border-radius: var(--radius);
    }
}

@media (min-width: 992px) {
    .package-card {
        padding: 30px 25px;
    }
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

@media (min-width: 768px) {
    .package-card:hover {
        transform: translateY(-8px);
    }
}

@media (hover: none) {
    .package-card:hover {
        transform: none;
    }
    
    .package-card:active {
        transform: scale(0.98);
    }
}

.package-icon {
    font-size: 34px;
    color: var(--primary);
    margin-bottom: 10px;
    display: inline-block;
    background: rgba(108, 99, 255, 0.08);
    width: 55px;
    height: 55px;
    line-height: 55px;
    border-radius: 50%;
}

@media (min-width: 480px) {
    .package-icon {
        font-size: 38px;
        width: 62px;
        height: 62px;
        line-height: 62px;
    }
}

@media (min-width: 768px) {
    .package-icon {
        font-size: 42px;
        width: 66px;
        height: 66px;
        line-height: 66px;
        margin-bottom: 12px;
    }
}

@media (min-width: 992px) {
    .package-icon {
        font-size: 44px;
        width: 70px;
        height: 70px;
        line-height: 70px;
        margin-bottom: 14px;
    }
}

.package-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

@media (min-width: 768px) {
    .package-card h3 {
        font-size: 17px;
        margin-bottom: 7px;
    }
}

@media (min-width: 992px) {
    .package-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
}

.package-card p {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 3px;
}

@media (min-width: 768px) {
    .package-card p {
        font-size: 14px;
        margin-bottom: 4px;
    }
}

.package-card .btn {
    margin-top: 10px;
}

@media (min-width: 768px) {
    .package-card .btn {
        margin-top: 12px;
    }
}

/* ===== TRYOUT ===== */
.tryout-container {
    padding: 30px 0 40px;
}

@media (min-width: 768px) {
    .tryout-container {
        padding: 35px 0 50px;
    }
}

@media (min-width: 992px) {
    .tryout-container {
        padding: 40px 0 60px;
    }
}

.tryout-header {
    text-align: center;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .tryout-header {
        margin-bottom: 30px;
    }
}

@media (min-width: 992px) {
    .tryout-header {
        margin-bottom: 40px;
    }
}

.tryout-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

@media (min-width: 480px) {
    .tryout-header h2 {
        font-size: 28px;
    }
}

@media (min-width: 768px) {
    .tryout-header h2 {
        font-size: 30px;
    }
}

@media (min-width: 992px) {
    .tryout-header h2 {
        font-size: 34px;
    }
}

.tryout-header .subtitle {
    color: var(--gray);
    font-size: 14px;
    margin-top: 3px;
}

@media (min-width: 768px) {
    .tryout-header .subtitle {
        font-size: 15px;
        margin-top: 4px;
    }
}

@media (min-width: 992px) {
    .tryout-header .subtitle {
        font-size: 16px;
    }
}

.tryout-info {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

@media (min-width: 480px) {
    .tryout-info {
        gap: 14px;
        margin-top: 14px;
    }
}

@media (min-width: 768px) {
    .tryout-info {
        gap: 20px;
        margin-top: 16px;
    }
}

.tryout-info span {
    background: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: var(--shadow);
    color: var(--dark);
}

@media (min-width: 480px) {
    .tryout-info span {
        padding: 7px 18px;
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .tryout-info span {
        padding: 8px 22px;
        font-size: 14px;
    }
}

.tryout-info span i {
    color: var(--primary);
    margin-right: 4px;
}

@media (min-width: 768px) {
    .tryout-info span i {
        margin-right: 6px;
    }
}

.timer {
    background: linear-gradient(135deg, var(--danger), #C0392B);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3);
}

@media (min-width: 480px) {
    .timer {
        padding: 11px 26px;
        font-size: 20px;
    }
}

@media (min-width: 768px) {
    .timer {
        padding: 12px 30px;
        font-size: 22px;
        gap: 10px;
        margin-top: 18px;
    }
}

.timer i {
    font-size: 16px;
}

@media (min-width: 768px) {
    .timer i {
        font-size: 20px;
    }
}

.timer.warning {
    animation: pulse-timer 1s ease-in-out infinite;
}

@keyframes pulse-timer {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.question-card {
    background: var(--white);
    padding: 20px 18px;
    border-radius: var(--radius-mobile);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    border: 1px solid rgba(108, 99, 255, 0.06);
    transition: var(--transition);
}

@media (min-width: 480px) {
    .question-card {
        padding: 24px 22px;
    }
}

@media (min-width: 768px) {
    .question-card {
        padding: 28px 28px;
        border-radius: var(--radius);
        margin-bottom: 22px;
    }
}

@media (min-width: 992px) {
    .question-card {
        padding: 30px 32px;
        margin-bottom: 24px;
    }
}

.question-card:hover {
    box-shadow: var(--shadow-hover);
}

.question-number {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (min-width: 768px) {
    .question-number {
        font-size: 13px;
        margin-bottom: 8px;
        gap: 8px;
    }
}

.question-number .badge-q {
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 10px;
}

@media (min-width: 768px) {
    .question-number .badge-q {
        padding: 2px 12px;
        font-size: 11px;
    }
}

.question-text {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.6;
}

@media (min-width: 480px) {
    .question-text {
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .question-text {
        font-size: 17px;
        margin-bottom: 20px;
    }
}

@media (min-width: 992px) {
    .question-text {
        font-size: 18px;
        margin-bottom: 22px;
    }
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 768px) {
    .options {
        gap: 12px;
    }
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    min-height: var(--touch-target);
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 480px) {
    .option {
        padding: 13px 18px;
        gap: 12px;
    }
}

@media (min-width: 768px) {
    .option {
        padding: 14px 20px;
        gap: 14px;
        border-radius: 12px;
        min-height: auto;
    }
}

.option:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.04);
}

.option:active {
    transform: scale(0.99);
}

.option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .option input[type="radio"] {
        width: 20px;
        height: 20px;
    }
}

.option .option-label {
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
    font-size: 14px;
}

@media (min-width: 768px) {
    .option .option-label {
        font-size: inherit;
    }
}

.option span {
    font-size: 14px;
    color: var(--dark);
    word-break: break-word;
}

@media (min-width: 480px) {
    .option span {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .option span {
        font-size: 16px;
    }
}

.option.selected {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.06);
}

.submit-section {
    text-align: center;
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid var(--light-gray);
}

@media (min-width: 768px) {
    .submit-section {
        margin-top: 30px;
        padding-top: 28px;
    }
}

@media (min-width: 992px) {
    .submit-section {
        margin-top: 35px;
        padding-top: 30px;
    }
}

/* ===== RESULT ===== */
.result-container {
    padding: 30px 0 40px;
}

@media (min-width: 768px) {
    .result-container {
        padding: 35px 0 50px;
    }
}

@media (min-width: 992px) {
    .result-container {
        padding: 40px 0 60px;
    }
}

.result-header {
    text-align: center;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .result-header {
        margin-bottom: 30px;
    }
}

@media (min-width: 992px) {
    .result-header {
        margin-bottom: 40px;
    }
}

.result-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

@media (min-width: 480px) {
    .result-header h2 {
        font-size: 28px;
    }
}

@media (min-width: 768px) {
    .result-header h2 {
        font-size: 30px;
    }
}

@media (min-width: 992px) {
    .result-header h2 {
        font-size: 34px;
    }
}

.result-header p {
    color: var(--gray);
    font-size: 14px;
    margin-top: 3px;
}

@media (min-width: 768px) {
    .result-header p {
        font-size: 15px;
        margin-top: 4px;
    }
}

@media (min-width: 992px) {
    .result-header p {
        font-size: 16px;
    }
}

.result-card {
    background: var(--white);
    padding: 25px 20px;
    border-radius: var(--radius-mobile);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(108, 99, 255, 0.06);
}

@media (min-width: 480px) {
    .result-card {
        padding: 30px 25px;
    }
}

@media (min-width: 768px) {
    .result-card {
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 35px;
        padding: 35px 30px;
        border-radius: var(--radius);
        align-items: center;
    }
}

@media (min-width: 992px) {
    .result-card {
        grid-template-columns: 220px 1fr;
        gap: 50px;
        padding: 45px;
        margin-bottom: 40px;
    }
}

.result-score {
    display: flex;
    justify-content: center;
}

.score-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.3);
    position: relative;
}

@media (min-width: 480px) {
    .score-circle {
        width: 150px;
        height: 150px;
    }
}

@media (min-width: 768px) {
    .score-circle {
        width: 160px;
        height: 160px;
    }
}

@media (min-width: 992px) {
    .score-circle {
        width: 180px;
        height: 180px;
    }
}

.score-circle::before {
    content: '';
    position: absolute;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.score-number {
    font-size: 40px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

@media (min-width: 480px) {
    .score-number {
        font-size: 46px;
    }
}

@media (min-width: 768px) {
    .score-number {
        font-size: 50px;
    }
}

@media (min-width: 992px) {
    .score-number {
        font-size: 56px;
    }
}

.score-label {
    font-size: 12px;
    opacity: 0.85;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .score-label {
        font-size: 13px;
    }
}

@media (min-width: 992px) {
    .score-label {
        font-size: 14px;
    }
}

.result-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

@media (min-width: 480px) {
    .result-details {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

@media (min-width: 992px) {
    .result-details {
        gap: 16px;
    }
}

.detail-item {
    padding: 14px 16px;
    background: var(--bg);
    border-radius: 10px;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .detail-item {
        padding: 16px 18px;
        border-radius: 12px;
    }
}

@media (min-width: 992px) {
    .detail-item {
        padding: 18px 20px;
    }
}

.detail-item:hover {
    background: rgba(108, 99, 255, 0.05);
}

.detail-item .label {
    display: block;
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .detail-item .label {
        font-size: 12px;
    }
}

.detail-item .value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-top: 3px;
}

@media (min-width: 480px) {
    .detail-item .value {
        font-size: 20px;
    }
}

@media (min-width: 992px) {
    .detail-item .value {
        font-size: 22px;
        margin-top: 4px;
    }
}

.detail-item .value.correct {
    color: var(--success);
}

.detail-item .value.wrong {
    color: var(--danger);
}

.detail-item .value.primary {
    color: var(--primary);
}

.history-section {
    background: var(--white);
    padding: 20px 18px;
    border-radius: var(--radius-mobile);
    box-shadow: var(--shadow);
    margin-bottom: 22px;
    border: 1px solid rgba(108, 99, 255, 0.06);
}

@media (min-width: 480px) {
    .history-section {
        padding: 24px 20px;
    }
}

@media (min-width: 768px) {
    .history-section {
        padding: 28px 26px;
        border-radius: var(--radius);
    }
}

@media (min-width: 992px) {
    .history-section {
        padding: 30px 32px;
        margin-bottom: 30px;
    }
}

.history-section h3 {
    margin-bottom: 14px;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .history-section h3 {
        font-size: 19px;
        margin-bottom: 18px;
        gap: 10px;
    }
}

@media (min-width: 992px) {
    .history-section h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

.history-section h3 i {
    color: var(--primary);
}

/* Table wrapper for horizontal scroll on mobile */
.history-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to right, black calc(100% - 20px), transparent 100%);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 500px;
}

@media (min-width: 768px) {
    .history-table {
        font-size: 14px;
        min-width: auto;
    }
}

.history-table thead {
    background: var(--bg);
}

.history-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--light-gray);
    white-space: nowrap;
}

@media (min-width: 480px) {
    .history-table th {
        padding: 11px 14px;
    }
}

@media (min-width: 768px) {
    .history-table th {
        padding: 12px 16px;
        font-size: 12px;
    }
}

.history-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

@media (min-width: 480px) {
    .history-table td {
        padding: 11px 14px;
    }
}

@media (min-width: 768px) {
    .history-table td {
        padding: 12px 16px;
    }
}

.history-table .correct {
    color: var(--success);
    font-weight: 600;
}

.history-table .wrong {
    color: var(--danger);
    font-weight: 600;
}

.history-table .score {
    color: var(--primary);
    font-weight: 700;
}

.history-table tbody tr {
    transition: var(--transition);
}

.history-table tbody tr:hover {
    background: rgba(108, 99, 255, 0.04);
}

@media (hover: none) {
    .history-table tbody tr:hover {
        background: transparent;
    }
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    flex-direction: column;
}

@media (min-width: 480px) {
    .result-actions {
        flex-direction: row;
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .result-actions {
        gap: 20px;
    }
}

.result-actions .btn {
    width: 100%;
}

@media (min-width: 480px) {
    .result-actions .btn {
        width: auto;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, #2D1B69 0%, #1A0A3E 100%);
    color: white;
    padding: 40px 0 0;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .footer {
        padding: 50px 0 0;
        margin-top: 35px;
    }
}

@media (min-width: 992px) {
    .footer {
        padding: 60px 0 0;
        margin-top: 40px;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }
}

@media (min-width: 992px) {
    .footer-content {
        gap: 50px;
        padding-bottom: 45px;
    }
}

.footer-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

@media (min-width: 480px) {
    .footer-info h3 {
        font-size: 22px;
    }
}

@media (min-width: 768px) {
    .footer-info h3 {
        font-size: 24px;
        margin-bottom: 8px;
    }
}

.footer-info h3 span {
    color: var(--primary-light);
}

.footer-info p {
    opacity: 0.75;
    margin-bottom: 14px;
    line-height: 1.6;
    font-size: 14px;
}

@media (min-width: 768px) {
    .footer-info p {
        font-size: inherit;
        margin-bottom: 18px;
    }
}

.social-links {
    display: flex;
    gap: 10px;
}

@media (min-width: 768px) {
    .social-links {
        gap: 12px;
    }
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    text-decoration: none;
    font-size: 15px;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
}

@media (min-width: 768px) {
    .social-links a {
        width: 42px;
        height: 42px;
        font-size: 16px;
        min-width: auto;
        min-height: auto;
    }
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
}

@media (hover: none) {
    .social-links a:hover {
        transform: none;
    }
    
    .social-links a:active {
        background: var(--primary);
        box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
    }
}

.footer-links h4,
.footer-contact h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

@media (min-width: 768px) {
    .footer-links h4,
    .footer-contact h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .footer-links ul li {
        margin-bottom: 10px;
    }
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition);
    font-size: 13px;
    padding: 4px 0;
    display: inline-block;
}

@media (min-width: 768px) {
    .footer-links ul li a {
        font-size: 14px;
    }
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 4px;
}

.footer-contact p {
    margin-bottom: 8px;
    opacity: 0.75;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .footer-contact p {
        font-size: 14px;
        margin-bottom: 10px;
        gap: 10px;
    }
}

.footer-contact p i {
    width: 18px;
    color: var(--primary-light);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .footer-contact p i {
        width: 20px;
    }
}

.footer-bottom {
    text-align: center;
    padding: 18px 0;
    font-size: 12px;
    opacity: 0.5;
}

@media (min-width: 768px) {
    .footer-bottom {
        padding: 22px 0;
        font-size: 13px;
    }
}

/* ===== LOGIN PAGE ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, #2D1B69 0%, #1A0A3E 50%, #0D0520 100%);
    position: relative;
    overflow: hidden;
    padding: 16px;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .login-page::before {
        width: 500px;
        height: 500px;
        top: -200px;
        right: -200px;
    }
}

.login-page::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 101, 132, 0.08) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .login-page::after {
        width: 400px;
        height: 400px;
        bottom: -150px;
        left: -150px;
    }
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 0;
    position: relative;
    z-index: 1;
}

@media (min-width: 480px) {
    .login-container {
        max-width: 420px;
        padding: 20px;
    }
}

@media (min-width: 992px) {
    .login-container {
        max-width: 440px;
    }
}

.login-box {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px 24px 28px;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 480px) {
    .login-box {
        padding: 35px 30px 32px;
        border-radius: 22px;
    }
}

@media (min-width: 768px) {
    .login-box {
        padding: 40px 35px 32px;
        border-radius: 24px;
    }
}

@media (min-width: 992px) {
    .login-box {
        padding: 45px 40px 35px;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .login-header {
        margin-bottom: 28px;
    }
}

@media (min-width: 992px) {
    .login-header {
        margin-bottom: 32px;
    }
}

.login-logo {
    width: 65px;
    height: 65px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.3);
}

@media (min-width: 480px) {
    .login-logo {
        width: 72px;
        height: 72px;
        font-size: 32px;
    }
}

@media (min-width: 768px) {
    .login-logo {
        width: 80px;
        height: 80px;
        font-size: 36px;
        margin: 0 auto 16px;
    }
}

.login-logo img {
    max-width: 55px;
    max-height: 55px;
    object-fit: contain;
}

@media (min-width: 480px) {
    .login-logo img {
        max-width: 62px;
        max-height: 62px;
    }
}

@media (min-width: 768px) {
    .login-logo img {
        max-width: 70px;
        max-height: 70px;
    }
}

.login-header h2 {
    font-size: 21px;
    font-weight: 700;
    color: var(--dark);
}

@media (min-width: 480px) {
    .login-header h2 {
        font-size: 23px;
    }
}

@media (min-width: 768px) {
    .login-header h2 {
        font-size: 24px;
    }
}

.login-header p {
    color: var(--gray);
    font-size: 13px;
    margin-top: 3px;
}

@media (min-width: 768px) {
    .login-header p {
        font-size: 14px;
        margin-top: 4px;
    }
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--gray);
    font-size: 11px;
}

@media (min-width: 768px) {
    .login-footer {
        margin-top: 25px;
        font-size: 12px;
    }
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .form-group {
        margin-bottom: 18px;
    }
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 12px;
    color: var(--dark);
}

@media (min-width: 768px) {
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: var(--transition);
    background: var(--white);
    color: var(--dark);
    min-height: var(--touch-target);
    -webkit-appearance: none;
    appearance: none;
}

@media (min-width: 480px) {
    .form-control {
        padding: 12px 15px;
        border-radius: 12px;
    }
}

@media (min-width: 768px) {
    .form-control {
        padding: 12px 16px;
        min-height: auto;
    }
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.form-control::placeholder {
    color: #B2BEC3;
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    font-size: 13px;
}

@media (min-width: 480px) {
    .alert {
        padding: 15px 20px;
        font-size: 14px;
        border-radius: 12px;
    }
}

@media (min-width: 768px) {
    .alert {
        padding: 16px 22px;
        margin-bottom: 20px;
        gap: 12px;
    }
}

.alert i {
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-info {
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.15);
    color: var(--primary-dark);
}

.alert-warning {
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid rgba(241, 196, 15, 0.15);
    color: #7D6608;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.15);
    color: #1A7A4A;
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 359px) {
    /* Very small phones */
    .container {
        padding: 0 10px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .btn-lg {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .banner-text h1 {
        font-size: 24px;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .category-card {
        padding: 20px 15px 18px;
    }
}

@media (min-width: 360px) and (max-width: 479px) {
    /* Standard small phones */
    .container {
        padding: 0 14px;
    }
}

@media (min-width: 1200px) {
    /* Large desktop */
    .container {
        padding: 0 32px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .banner,
    .btn,
    .nav-menu {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ===== RESPONSIVE (simplified consolidation) ===== */
/* These keep original logic but with better breakpoints */

/* Tablet landscape / Small desktop */
@media (max-width: 991px) {
    .banner-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .banner-text p {
        margin: 0 auto 30px;
    }
    
    .banner-text .btn-group {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .result-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px;
    }
}

/* Tablet portrait */
@media (max-width: 767px) {
    .banner-text h1 {
        font-size: 34px;
    }
    
    .banner {
        padding: 50px 0;
    }
    
    .brain-icon {
        width: 200px;
        height: 200px;
        font-size: 100px;
    }
    
    .brain-icon i {
        font-size: 80px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .result-details {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .result-card {
        padding: 25px;
    }
    
    .score-circle {
        width: 140px;
        height: 140px;
    }
    
    .score-number {
        font-size: 42px;
    }
    
    .history-table-wrapper {
        margin: 0 -16px;
        padding: 0 16px;
    }
}

/* Large phones */
@media (max-width: 575px) {
    .container {
        padding: 0 16px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    
    .tryout-info {
        flex-direction: column;
        align-items: center;
    }
    
    .question-card {
        padding: 20px;
    }
    
    .option {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .option span {
        font-size: 14px;
    }
    
    .history-table {
        font-size: 12px;
    }
    
    .history-table th,
    .history-table td {
        padding: 8px 10px;
    }
    
    .banner-text h1 {
        font-size: 28px;
    }
    
    .brain-icon {
        width: 150px;
        height: 150px;
        font-size: 80px;
    }
    
    .brain-icon i {
        font-size: 60px;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-gray { color: var(--gray); }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

/* Badge style for category */
.category-card .badge {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ========================================== */
/* REGISTER PAGE (daftar.php) - OPTIMIZED     */
/* ========================================== */

.register-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0D0520;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
    margin: 0;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Background overlay - lebih ringan dari gradient penuh */
.register-page::after {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 70% 20%, rgba(108, 99, 255, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 30% 80%, rgba(255, 101, 132, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    /* No animation - static only */
}

/* Orbs - dioptimasi */
.register-page .orb {
    position: fixed;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    /* GPU acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.register-page .orb-1 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.4) 0%, transparent 70%);
    top: -120px;
    right: -80px;
    filter: blur(60px);
    opacity: 0.25;
    animation: orbFloat1 12s ease-in-out infinite;
}

.register-page .orb-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 101, 132, 0.35) 0%, transparent 70%);
    bottom: -80px;
    left: -60px;
    filter: blur(50px);
    opacity: 0.2;
    animation: orbFloat2 14s ease-in-out infinite;
}

/* Animasi lebih sederhana */
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -15px) scale(1.05); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, 15px) scale(1.05); }
}

/* Container */
.register-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.register-box {
    background: rgba(255, 255, 255, 0.97);
    /* Kurangi blur */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px 24px;
    border-radius: 20px;
    /* Kurangi shadow */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Animasi cuma sekali, bukan infinite */
    animation: slideUp 0.5s ease-out forwards;
    position: relative;
    overflow: hidden;
}

/* Garis atas - tanpa animasi gradient */
.register-box::before {
    display: none !important;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Register Header */
.register-header {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 6px;
}

.register-header .icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2ECC71, #27AE60);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: white;
    font-size: 26px;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.25);
    /* No infinite animation - better performance */
}

.register-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1A0A3E;
    margin-bottom: 4px;
}

.register-header h2 span {
    color: #27AE60;
}

.register-header p {
    color: #888;
    font-size: 13px;
    margin-top: 4px;
}

/* Steps Indicator */
.register-steps {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 18px;
}

.register-steps .step-dot {
    width: 30px;
    height: 3px;
    background: #DFE6E9;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.register-steps .step-dot.active {
    background: #2ECC71;
    width: 40px;
}

/* Form Groups */
.register-box .form-group {
    margin-bottom: 14px;
}

.register-box .form-group label {
    display: block;
    font-weight: 600;
    font-size: 12px;
    color: #2D3436;
    margin-bottom: 5px;
}

.register-box .form-group label .required {
    color: #E74C3C;
    margin-left: 2px;
}

.register-box .form-group label i {
    margin-right: 4px;
    width: 14px;
    text-align: center;
}

/* Input Wrapper */
.register-box .input-wrapper {
    position: relative;
}

.register-box .input-wrapper .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #B2BEC3;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.register-box .input-wrapper input {
    width: 100%;
    padding: 11px 12px 11px 38px;
    border: 2px solid #E8ECF1;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background: #F8F9FD;
    color: #2D3436;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.register-box .input-wrapper input:focus {
    outline: none;
    border-color: #2ECC71;
    background: white;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.register-box .input-wrapper input::placeholder {
    color: #B2BEC3;
}

.register-box .input-wrapper input.error {
    border-color: #E74C3C;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.register-box .input-wrapper .input-icon.focused {
    color: #2ECC71;
}

/* Input Hints */
.register-box .input-hint {
    color: #B2BEC3;
    font-size: 10px;
    display: block;
    margin-top: 3px;
    padding-left: 2px;
}

.register-box .input-hint i {
    margin-right: 3px;
}

/* Divider Text */
.register-box .divider-text {
    text-align: center;
    margin: 18px 0;
    position: relative;
    z-index: 1;
}

.register-box .divider-text span {
    background: white;
    padding: 0 12px;
    color: #FF6584;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.register-box .divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 0;
}

/* Info Box */
.register-box .ortu-info-box {
    background: rgba(255, 101, 132, 0.04);
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 11px;
    color: #636E72;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid rgba(255, 101, 132, 0.06);
}

.register-box .ortu-info-box i {
    color: #FF6584;
    font-size: 13px;
    margin-top: 1px;
    flex-shrink: 0;
}

.register-box .ortu-info-box strong {
    color: #FF6584;
}

/* Alert - tanpa animasi shake (berat) */
.register-box .alert {
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid;
}

.register-box .alert-error {
    background: rgba(231, 76, 60, 0.08);
    border-left-color: #E74C3C;
    color: #A93226;
}

.register-box .alert-error i {
    color: #E74C3C;
    font-size: 15px;
}

.register-box .alert-success {
    background: rgba(46, 204, 113, 0.08);
    border-left-color: #2ECC71;
    color: #1A7A4A;
}

.register-box .alert-success i {
    color: #2ECC71;
    font-size: 15px;
}

.register-box .alert-success a {
    color: #2ECC71;
    font-weight: 600;
    margin-left: auto;
    text-decoration: none;
    white-space: nowrap;
    font-size: 12px;
}

/* Submit Button */
.btn-register {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    background: #2ECC71;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.25);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.btn-register:hover {
    background: #27AE60;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.35);
}

.btn-register:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.btn-register:disabled {
    background: #B2BEC3;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Register Footer */
.register-footer {
    text-align: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.register-footer p {
    font-size: 12px;
    color: #B2BEC3;
}

.register-footer a {
    color: #6C63FF;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
}

.register-footer .copyright {
    font-size: 10px;
    color: #D5D9E0;
    margin-top: 6px;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 12px;
    margin-bottom: 12px;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: white;
}

.back-link i {
    font-size: 11px;
}

/* ========================================== */
/* RESPONSIVE - MOBILE OPTIMIZED              */
/* ========================================== */

/* Tablet kecil & HP besar */
@media (max-width: 576px) {
    .register-page {
        padding: 12px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .register-page::after {
        /* Lebih transparan di mobile */
        opacity: 0.7;
    }
    
    /* Matiin animasi orb di mobile */
    .register-page .orb {
        animation: none !important;
    }
    
    .register-page .orb-1 {
        width: 200px;
        height: 200px;
        top: -60px;
        right: -60px;
        filter: blur(40px);
        opacity: 0.2;
    }
    
    .register-page .orb-2 {
        width: 150px;
        height: 150px;
        bottom: -40px;
        left: -40px;
        filter: blur(30px);
        opacity: 0.15;
    }
    
    .register-box {
        padding: 24px 18px;
        border-radius: 18px;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    
    .register-box::before {
        height: 2px;
    }
    
    .register-header h2 {
        font-size: 18px;
    }
    
    .register-header .icon-circle {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .register-box .input-wrapper input {
        padding: 10px 10px 10px 36px;
        font-size: 13px;
    }
    
    .btn-register {
        font-size: 13px;
        padding: 12px;
    }
    
    .register-box .divider-text span {
        font-size: 9px;
        padding: 0 8px;
    }
}

/* HP kecil */
@media (max-width: 400px) {
    .register-page {
        padding: 8px;
        padding-top: 16px;
    }
    
    .register-box {
        padding: 20px 14px;
        border-radius: 16px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    }
    
    .register-box .form-group {
        margin-bottom: 10px;
    }
    
    .register-box .input-wrapper input {
        font-size: 12px;
        padding: 10px 10px 10px 34px;
    }
    
    .register-header h2 {
        font-size: 17px;
    }
    
    .register-header p {
        font-size: 12px;
    }
    
    .btn-register {
        font-size: 13px;
        padding: 11px;
    }
}

/* Sangat kecil */
@media (max-width: 320px) {
    .register-box {
        padding: 16px 12px;
    }
    
    .register-header .icon-circle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .register-header h2 {
        font-size: 15px;
    }
}

/* ========================================== */
/* PREFERS REDUCED MOTION                     */
/* ========================================== */
@media (prefers-reduced-motion: reduce) {
    .register-page .orb {
        animation: none !important;
    }
    
    .register-box {
        animation: none !important;
    }
    
    .btn-register {
        transition: none !important;
    }
}

/* ========================================== */
/* PRINT                                      */
/* ========================================== */
@media print {
    .register-page {
        background: white;
    }
    
    .register-page::after,
    .register-page .orb,
    .back-link {
        display: none !important;
    }
    
    .register-box {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}