:root {
    /* Primary Apple Colors */
    --apple-blue: #007AFF;
    --apple-blue-light: #5AC8FA;
    --apple-blue-hover: #0056CC;
    --apple-green: #34C759;
    --apple-orange: #FF9500;
    --apple-red: #FF3B30;
    
    /* Neutral Colors */
    --gray-50: #F9F9F9;
    --gray-100: #F0F0F0;
    --gray-200: #E5E5E5;
    --gray-300: #D1D1D6;
    --gray-400: #C7C7CC;
    --gray-500: #AEAEB2;
    --gray-600: #8E8E93;
    --gray-700: #636366;
    --gray-800: #1C1C1E;
    --gray-900: #000000;
    
    /* Semantic Colors */
    --background: #FBFBFD;
    --surface: #FFFFFF;
    --surface-secondary: #F5F5F7;
    --border-color: var(--gray-300);
    --text-primary: var(--gray-800);
    --text-secondary: var(--gray-600);
    --text-tertiary: var(--gray-500);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Consolas', monospace;
    
    /* Typography Scale */
    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 15px;
    --text-lg: 17px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 28px;
    --text-4xl: 32px;
    --text-5xl: 40px;
    
    /* Legacy support - gradually remove these */
    --apple-light-grey: var(--surface-secondary);
    --apple-dark: var(--gray-800);
    --body-font: var(--font-primary);
    --heading-color: var(--text-primary);
    --text-color: var(--text-secondary);
    --card-bg: var(--surface);
    --card-shadow: rgba(0, 0, 0, 0.08);
    --footer-color: var(--text-tertiary);
    --subtle-highlight: rgba(0, 122, 255, 0.08);
    --example-count-bg: var(--gray-100);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.16);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    
    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: var(--font-primary);
    background-color: var(--background);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zm20.97 0l9.315 9.314-1.414 1.414L34.828 0h2.83zM22.344 0L13.03 9.314l1.414 1.414L25.172 0h-2.83zM32 0l12.142 12.142-1.414 1.414L30 .828 17.272 13.556l-1.414-1.414L28 0h4zM.284 0l28 28-1.414 1.414L0 2.544V0h.284zM0 5.373l25.456 25.455-1.414 1.415L0 8.2V5.374zm0 5.656l22.627 22.627-1.414 1.414L0 13.86v-2.83zm0 5.656l19.8 19.8-1.415 1.413L0 19.514v-2.83zm0 5.657l16.97 16.97-1.414 1.415L0 25.172v-2.83zM0 28l14.142 14.142-1.414 1.414L0 30.828V28zm0 5.657L11.314 44.97 9.9 46.386l-9.9-9.9v-2.828zm0 5.657L8.485 47.8 7.07 49.214 0 42.143v-2.83zm0 5.657l5.657 5.657-1.414 1.415L0 47.8v-2.83zm0 5.657l2.828 2.83-1.414 1.413L0 53.456v-2.83zM54.627 60L30 35.373 5.373 60H8.2L30 38.2 51.8 60h2.827zm-5.656 0L30 41.03 11.03 60h2.828L30 43.858 46.142 60h2.83zm-5.656 0L30 46.686 16.686 60h2.83L30 49.515 40.485 60h2.83zm-5.657 0L30 52.343 22.344 60h2.83L30 55.172 34.828 60h2.83zM32 60l-2-2-2 2h4zM59.716 0l-28 28 1.414 1.414L60 2.544V0h-.284zM60 5.373L34.544 30.828l1.414 1.415L60 8.2V5.374zm0 5.656L37.373 33.656l1.414 1.414L60 13.86v-2.83zm0 5.656l-19.8 19.8 1.415 1.413L60 19.514v-2.83zm0 5.657l-16.97 16.97 1.414 1.415L60 25.172v-2.83zM60 28L45.858 42.142l1.414 1.414L60 30.828V28zm0 5.657L48.686 44.97l1.415 1.415 9.9-9.9v-2.828zm0 5.657L51.515 47.8l1.414 1.415 7.07-7.07v-2.83zm0 5.657l-5.657 5.657 1.414 1.415L60 47.8v-2.83zm0 5.657l-2.828 2.83 1.414 1.413L60 53.456v-2.83zM39.9 16.385l1.414-1.414L30 3.658 18.686 14.97l1.415 1.415 9.9-9.9 9.9 9.9zm-2.83 2.828l1.415-1.414L30 9.313 21.515 17.8l1.414 1.413L30 12.143l7.07 7.07zm-2.827 2.83l1.414-1.416L30 14.97l-5.657 5.657 1.414 1.415L30 17.8l4.243 4.242zm-2.83 2.827l1.415-1.414L30 20.626l-2.828 2.83 1.414 1.414L30 23.456l1.414 1.414zM56.87 59.414L58.284 58 30 29.716 1.716 58l1.414 1.414L30 32.544l26.87 26.87z' fill='%23E5E5E5' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
    color: var(--text-secondary);
    padding-top: var(--space-10);
    padding-bottom: var(--space-16);
    line-height: 1.6;
    font-size: var(--text-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h1 {
    font-size: var(--text-5xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-3xl);
    font-weight: 600;
}

h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
}

h4 {
    font-size: var(--text-xl);
    font-weight: 600;
}

/* Smooth transitions for all interactive elements */
* {
    transition: color var(--transition-fast), 
                background-color var(--transition-fast), 
                border-color var(--transition-fast),
                box-shadow var(--transition-fast),
                transform var(--transition-fast);
}

*:focus {
    outline: none;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--apple-blue);
    outline-offset: 2px;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
}

/* Minimal Hero Section */
.hero {
    background: var(--surface);
    color: var(--text-primary);
    padding: var(--space-16) 0 var(--space-12);
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-10);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-slow);
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 122, 255, 0.02) 0%, 
        rgba(90, 200, 250, 0.02) 50%,
        rgba(52, 199, 89, 0.02) 100%);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
}

.hero-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-blue-light));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    line-height: 70px;
    display: inline-block;
    position: relative;
}

.hero-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--apple-blue-light), var(--apple-blue));
    border-radius: 50%;
    opacity: 0.08;
    z-index: -1;
    animation: gentle-pulse 4s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.08;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.12;
    }
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--text-lg);
    font-weight: 400;
    margin-bottom: 0;
    color: var(--text-secondary);
    max-width: 90%;
    margin: 0 auto;
    line-height: 1.5;
}

.highlight-text {
    position: relative;
    font-weight: 600;
    color: var(--apple-blue);
}

/* Remove the old highlight effect */
.highlight-text::after {
    display: none;
}

/* Remove hero badges for cleaner look */
.hero-badge {
    display: none;
}

.hero-decoration {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(120deg, rgba(0, 122, 255, 0.05), transparent);
    bottom: -60px;
    right: -30px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-12) 0 var(--space-8);
        margin-bottom: var(--space-8);
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
        max-width: 95%;
    }
    
    .hero-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 2rem;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 80%;
    margin: 0 auto 2rem;
}

.highlight-text {
    position: relative;
    font-weight: 600;
}

.highlight-text::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.25);
    z-index: -1;
    transform: rotate(-1deg);
}

.hero-badge {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 2rem;
    font-size: 1rem;
    font-weight: 500;
}

.hero-badge span {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.hero-badge span:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.3);
}

.hero-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(120deg, rgba(255,255,255,0.1), transparent);
    bottom: -100px;
    right: -50px;
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        max-width: 95%;
    }
    
    .hero-badge {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .hero-icon {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 2.2rem;
    }
}

.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    margin-bottom: var(--space-8);
    background-color: var(--surface);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.card-header {
    background: linear-gradient(135deg, var(--gray-50), var(--surface));
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-5) var(--space-6);
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.card-header i {
    color: var(--apple-blue);
    margin-right: var(--space-2);
}

.card-body {
    padding: var(--space-6);
}

/* Enhanced form controls */
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-4);
    font-size: var(--text-base);
    font-family: var(--font-primary);
    background-color: var(--surface);
    transition: all var(--transition-base);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    background-color: var(--surface);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group {
    position: relative;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

/* Primary button styling */
.btn-apple {
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-blue-light));
    border: none;
    color: white;
    font-weight: 600;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-apple::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 var(--transition-slow);
}

.btn-apple:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--apple-blue-hover), var(--apple-blue));
}

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

.btn-apple:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
}

.btn-apple:focus {
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.3);
}

/* Enhanced micro-interactions for buttons and inputs */
.btn {
    border-radius: var(--radius-md);
    font-weight: 500;
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transform: translateZ(0); /* Force hardware acceleration */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-height: 44px;
    line-height: 1.3;
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0) scale(0.96) translateZ(0);
    box-shadow: var(--shadow-sm);
}

.btn:focus-visible {
    outline: 2px solid var(--apple-blue);
    outline-offset: 2px;
}

/* Enhanced input micro-interactions */
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-4);
    font-size: var(--text-base);
    font-family: var(--font-primary);
    background-color: var(--surface);
    transition: all var(--transition-base);
    color: var(--text-primary);
    position: relative;
}

.form-control:hover {
    border-color: var(--gray-300);
    box-shadow: 0 0 0 1px rgba(0, 122, 255, 0.1);
}

.form-control:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    background-color: var(--surface);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
    transition: opacity var(--transition-fast);
}

.form-control:focus::placeholder {
    opacity: 0.7;
}

/* Skeleton loading screens */
.skeleton {
    background: linear-gradient(90deg, 
        var(--gray-200) 25%, 
        var(--gray-100) 50%, 
        var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 2s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1em;
    margin-bottom: var(--space-2);
}

.skeleton-text.large {
    height: 1.5em;
}

.skeleton-text.small {
    height: 0.8em;
    width: 60%;
}

.skeleton-card {
    padding: var(--space-6);
    margin-bottom: var(--space-4);
}

.skeleton-button {
    height: 40px;
    width: 120px;
}

/* Enhanced loading states */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    color: var(--text-secondary);
}

.loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 3px;
    border-color: var(--apple-blue-light);
    border-right-color: transparent;
    margin-bottom: var(--space-4);
    animation: spinner-grow 1s linear infinite;
}

@keyframes spinner-grow {
    0% {
        transform: rotate(0deg) scale(0.8);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(0.8);
    }
}

.loading p {
    font-size: var(--text-base);
    font-weight: 500;
    margin: 0;
    color: var(--text-secondary);
    animation: loading-pulse 2s ease-in-out infinite;
}

@keyframes loading-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Processing states with progress indication */
.processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius-xl);
}

.processing-content {
    text-align: center;
    padding: var(--space-8);
}

.processing-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--apple-blue);
    border-radius: 50%;
    animation: processing-spin 1s linear infinite;
    margin: 0 auto var(--space-4);
}

@keyframes processing-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-outline-secondary {
    border-color: var(--gray-300);
    color: var(--text-secondary);
}

.btn-outline-secondary:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--text-primary);
}

.btn-success {
    background-color: var(--apple-green);
    border-color: var(--apple-green);
}

.btn-success:hover {
    background-color: #28a745;
    border-color: #28a745;
    box-shadow: var(--shadow-md);
}

.btn-info {
    background-color: var(--apple-blue-light);
    border-color: var(--apple-blue-light);
}

.btn-info:hover {
    background-color: #138496;
    border-color: #138496;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--gray-500);
    border-color: var(--gray-500);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--gray-600);
    border-color: var(--gray-600);
    box-shadow: var(--shadow-md);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    background-color: transparent;
    font-weight: 600;
    padding: 20px 25px;
    border-radius: 16px 16px 0 0 !important;
    color: var(--heading-color);
}

.card-body {
    padding: 25px;
}

.btn-apple {
    background-color: var(--apple-blue);
    border: none;
    color: white;
    border-radius: 24px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
    font-size: 1.05rem;
}

.btn-apple:hover {
    background-color: var(--apple-blue-hover);
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.4);
}

.btn-apple:active {
    transform: scale(0.98);
}

.form-control {
    border-radius: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    font-size: 1.05rem;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
    border-color: var(--apple-blue);
}

.form-label {
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    display: block;
}

.apple-id-badge {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.apple-id-badge:hover {
    background-color: #f2f2f2;
    transform: translateX(5px);
    border-color: var(--border-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.guide-name {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--heading-color);
    margin-bottom: 28px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 14px;
    box-shadow: 0 4px 12px var(--card-shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--apple-blue);
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--apple-blue);
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 5px 10px;
    border-radius: 6px;
}

.copy-btn:hover {
    background-color: rgba(0, 113, 227, 0.1);
    transform: scale(1.1);
}

.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px var(--card-shadow);
}

footer {
    margin-top: 60px;
    color: var(--footer-color);
    font-size: 0.95rem;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.results-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0, 1, 0, 1);
}

.results-container.show {
    max-height: 5000px;
    transition: max-height 1.2s ease-in-out;
}

.fade-in {
    animation: fadeIn 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.loading .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--apple-blue);
}

.clipboard-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clipboard-toast.show {
    opacity: 1;
}

.url-example {
    color: #6e6e73;
    font-size: 0.9rem;
    margin-top: 5px;
}

#url-clear-btn {
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #86868b;
    cursor: pointer;
    display: none;
}

.input-group {
    position: relative;
}

.url-count {
    font-size: 0.9rem;
    color: #6e6e73;
    margin-top: 10px;
}

.highlight {
    background-color: rgba(0, 113, 227, 0.1);
    animation: highlightFade 1.5s ease-out;
}

@keyframes highlightFade {
    0% { background-color: rgba(0, 113, 227, 0.3); }
    100% { background-color: rgba(0, 113, 227, 0); }
}

.btn-secondary {
    color: var(--text-color);
    background-color: #e9ecef;
    border-color: var(--border-color);
}

.btn-secondary:hover {
    color: var(--heading-color);
    background-color: #d0d3d6;
    border-color: #c6c8ca;
}

.btn-success, .btn-info {
    color: #fff;
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        max-width: 95%;
    }
    
    .hero-badge {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .hero-icon {
        width: 70px;
        height: 70px;
        line-height: 70px;
        font-size: 2.2rem;
    }
}

.url-example-container {
    background-color: #f8f9fa;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid var(--apple-blue);
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.url-example-title {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.url-example-title i {
    margin-right: 8px;
    color: var(--apple-blue);
}

.example-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--example-count-bg);
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--heading-color);
}

.example-url-item {
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    animation: fadeItem 0.5s ease;
}

@keyframes fadeItem {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.example-url-item p {
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: #555;
}

.example-url-item p strong {
    color: var(--heading-color);
}

.example-url-text {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    color: #333;
    word-break: break-all;
    cursor: pointer;
    padding: 10px 14px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.example-url-text:hover {
    background-color: var(--subtle-highlight);
    border-color: rgba(0, 113, 227, 0.2);
}

.use-example-btn {
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-4);
    background-color: var(--apple-blue);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: var(--space-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    white-space: nowrap;
    min-width: 80px;
    flex-shrink: 0;
}

.use-example-btn:hover {
    background-color: var(--apple-blue-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.use-example-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

#nextExampleBtn {
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--text-primary);
    font-weight: 500;
    padding: var(--space-2) var(--space-5);
    border: 1px solid var(--gray-300);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 120px;
    font-size: var(--text-sm);
}

#nextExampleBtn:hover {
    background: linear-gradient(135deg, var(--surface), var(--gray-100));
    border-color: var(--apple-blue-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

#nextExampleBtn:active {
    transform: translateY(0);
    box-shadow: none;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    width: 180px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 0.9;
}

.section-divider {
    margin: 25px 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

#exampleUrlItemsContainer .example-url-item {
    display: none;
}

/* Description Box Styles */
.description-box {
    background-color: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.description-box:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.description-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-blue-light));
}

.description-title {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.description-title i {
    color: var(--apple-blue);
    margin-right: var(--space-2);
}

.description-content {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

.description-content p {
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.description-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

.description-list li {
    position: relative;
    padding: var(--space-4) var(--space-5);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    min-height: 60px;
    white-space: nowrap;
    overflow: hidden;
}

.description-list li:hover {
    background: var(--surface);
    border-color: var(--apple-blue-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.description-list li:before {
    content: "";
    width: 20px;
    height: 20px;
    background-color: var(--apple-blue);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    margin-right: var(--space-4);
    flex-shrink: 0;
}

.description-list li span {
    font-weight: 600;
    color: var(--apple-blue);
    margin-right: var(--space-2);
    font-size: var(--text-lg);
    flex-shrink: 0;
    display: inline-block;
    min-width: 60px;
}

.description-list li .description-text {
    flex: 1;
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .description-box {
        padding: var(--space-6);
    }
    
    .description-list {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .description-list li {
        padding: var(--space-3) var(--space-4);
        min-height: 50px;
        white-space: normal;
        flex-wrap: wrap;
    }
    
    .description-list li span {
        font-size: var(--text-base);
        min-width: 50px;
        margin-right: var(--space-1);
    }
    
    .description-list li .description-text {
        font-size: var(--text-sm);
    }
}

/* Loading States */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    color: var(--text-secondary);
}

.loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 3px;
    border-color: var(--apple-blue-light);
    border-right-color: transparent;
    margin-bottom: var(--space-4);
}

.loading p {
    font-size: var(--text-base);
    font-weight: 500;
    margin: 0;
    color: var(--text-secondary);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-5);
    font-size: var(--text-sm);
    border-left: 4px solid;
}

.alert-danger {
    background-color: rgba(255, 59, 48, 0.1);
    border-left-color: var(--apple-red);
    color: #d32f2f;
}

.alert-success {
    background-color: rgba(52, 199, 89, 0.1);
    border-left-color: var(--apple-green);
    color: #2e7d32;
}

/* Fade in animation */
.fade-in {
    animation: fadeIn var(--transition-slow) ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced data visualization for results */
.apple-id-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.apple-id-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--apple-blue);
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.apple-id-item:hover {
    background: var(--gray-50);
    border-color: var(--apple-blue-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.apple-id-item:hover::before {
    transform: scaleY(1);
}

.apple-id-item:active {
    transform: translateY(0) scale(0.98);
}

.apple-id-text {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-primary);
    background: var(--gray-100);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    flex: 1;
    margin-right: var(--space-3);
    word-break: break-all;
    transition: all var(--transition-fast);
}

.apple-id-item:hover .apple-id-text {
    background: var(--surface);
    color: var(--apple-blue);
}

.copy-btn {
    background: var(--apple-blue);
    color: white;
    border: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-1);
    transition: all var(--transition-fast);
    min-width: 70px;
    justify-content: center;
}

.copy-btn:hover {
    background: var(--apple-blue-hover);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: var(--apple-green);
    animation: copy-success 0.3s ease;
}

@keyframes copy-success {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Results summary card */
.results-summary {
    background: linear-gradient(135deg, var(--apple-blue-light), var(--apple-blue));
    color: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.results-summary::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 30m-20 0a20 20 0 1 1 40 0a20 20 0 1 1 -40 0' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1'/%3E%3C/svg%3E") repeat;
    animation: float-pattern 20s linear infinite;
    opacity: 0.3;
}

@keyframes float-pattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-60px) translateY(-60px); }
}

.results-summary h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
    position: relative;
    z-index: 2;
}

.results-summary p {
    font-size: var(--text-base);
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 2;
}

.results-count {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-weight: 600;
    margin: 0 var(--space-2);
}

/* Enhanced pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    padding: var(--space-4);
}

.pagination-btn {
    background: var(--surface);
    border: 1px solid var(--gray-200);
    color: var(--text-primary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: var(--apple-blue);
    border-color: var(--apple-blue);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin: 0 var(--space-4);
}

/* Footer */
footer {
    margin-top: var(--space-16);
    padding: var(--space-8) 0;
    color: var(--text-tertiary);
    font-size: var(--text-sm);
}

footer a {
    color: var(--apple-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--apple-blue-hover);
}

/* Utility classes */
.text-center { text-align: center; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.me-2 { margin-right: var(--space-2); }
.me-md-2 { margin-right: var(--space-2); }
.gap-2 { gap: var(--space-2); }

/* URL input validation states */
.form-control.valid-url {
    border-color: var(--apple-green);
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.1);
}

.form-control.invalid-url {
    border-color: var(--apple-orange);
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1);
}

/* Enhanced clipboard toast */
.clipboard-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--apple-green);
    color: white;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    opacity: 0;
    transition: all var(--transition-base);
    z-index: 1050;
    font-size: var(--text-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.clipboard-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Enhanced example URL items */
.example-url-item {
    padding: var(--space-4);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    background: var(--surface);
    transition: all var(--transition-base);
}

.example-url-item:hover {
    border-color: var(--apple-blue-light);
    box-shadow: var(--shadow-sm);
}

.example-url-text {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-top: var(--space-2);
}

.example-url-text span {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.use-example-btn {
    background: var(--apple-blue);
    color: white;
    border: none;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 500;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.use-example-btn:hover {
    background: var(--apple-blue-hover);
    transform: translateY(-1px);
}

.url-example-container {
    margin-bottom: var(--space-6);
    padding: var(--space-5);
    background: linear-gradient(135deg, var(--gray-50), var(--surface));
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.url-example-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    font-size: var(--text-base);
}

.url-example-title i {
    color: var(--apple-orange);
    margin-right: var(--space-2);
}

.example-counter {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    background: var(--surface);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    display: inline-block;
    margin-bottom: var(--space-4);
    border: 1px solid var(--gray-200);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
    margin: var(--space-6) 0;
}

/* Enhanced guide name styling */
.guide-name {
    color: var(--text-primary);
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
    padding: var(--space-4);
    background: linear-gradient(135deg, var(--apple-blue-light), var(--apple-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.guide-name::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-blue-light));
    border-radius: var(--radius-sm);
}

/* Phase 3: Glassmorphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-button {
    background: rgba(0, 122, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 122, 255, 0.2);
    color: var(--apple-blue);
    transition: all var(--transition-base);
}

.glass-button:hover {
    background: rgba(0, 122, 255, 0.2);
    border-color: rgba(0, 122, 255, 0.4);
    transform: translateY(-2px);
}

.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.glass-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Enhanced card with glassmorphism */
.card.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card.glass:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Floating action buttons with glassmorphism */
.fab {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3);
    transition: all var(--transition-base);
    z-index: 100;
}

.fab:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 122, 255, 0.4);
}

.fab:active {
    transform: scale(0.95);
}

/* Results container with glassmorphism */
.results-container {
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-slow);
}

.results-container.show {
    opacity: 1;
    transform: translateY(0);
}

.results-container.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Touch gestures and mobile enhancements */
.touch-target {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swipe-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.swipe-container::-webkit-scrollbar {
    display: none;
}

.swipe-item {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Gesture indicators */
.swipe-indicator {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4);
}

.swipe-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: all var(--transition-fast);
}

.swipe-dot.active {
    background: var(--apple-blue);
    transform: scale(1.2);
}

/* Enhanced accessibility features */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--apple-blue);
    color: white;
    padding: 8px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--text-primary);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .form-control {
        border: 2px solid var(--text-primary);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-icon::before,
    .skeleton,
    .loading .spinner-border,
    .processing-spinner {
        animation: none;
    }
}

/* Responsive improvements and mobile enhancements */
@media (max-width: 768px) {
    .clipboard-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .clipboard-toast.show {
        transform: translateY(0);
    }
    
    .example-url-text {
        flex-direction: column;
        align-items: stretch;
    }
    
    .use-example-btn {
        align-self: flex-end;
        margin-top: var(--space-2);
        margin-left: 0;
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
        min-width: 70px;
    }
    
    .url-example-container {
        padding: var(--space-4);
    }
    
    .apple-id-item {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-3);
    }
    
    .apple-id-text {
        margin-right: 0;
        text-align: center;
        font-size: var(--text-xs);
    }
    
    .copy-btn {
        align-self: center;
        min-width: 100px;
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
        white-space: nowrap;
    }
    
    /* Export buttons responsive */
    #exportButtons .btn {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }
    
    #exportButtons {
        gap: var(--space-2) !important;
    }
    
    .results-summary {
        padding: var(--space-4);
    }
    
    .results-summary h3 {
        font-size: var(--text-xl);
    }
    
    .pagination-container {
        flex-wrap: wrap;
        gap: var(--space-1);
    }
    
    .pagination-info {
        order: -1;
        width: 100%;
        text-align: center;
        margin-bottom: var(--space-2);
    }
    
    .fab {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 48px;
        height: 48px;
    }
    
    /* Touch-friendly interactions */
    .btn {
        min-height: 44px;
        padding: var(--space-3) var(--space-4);
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
}

/* Large screen optimizations */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .apple-id-item {
        padding: var(--space-5);
    }
    
    .results-summary {
        padding: var(--space-8);
    }
    
    .description-box {
        padding: var(--space-10);
    }
    
    .hero {
        padding: var(--space-20) 0 var(--space-16);
    }
}

/* Extra small screens (320px and below) */
@media (max-width: 320px) {
    .description-list li {
        padding: var(--space-2) var(--space-3);
        min-height: 40px;
    }
    
    .description-list li span {
        font-size: var(--text-sm);
        min-width: 45px;
    }
    
    .description-list li .description-text {
        font-size: var(--text-xs);
    }
    
    .use-example-btn {
        min-width: 60px;
        padding: var(--space-1) var(--space-2);
    }
    
    #nextExampleBtn {
        min-width: 100px;
        padding: var(--space-1) var(--space-3);
        font-size: var(--text-xs);
    }
    
    .btn {
        min-height: 36px;
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
    }
    
    #exportButtons .btn {
        padding: var(--space-1) var(--space-2);
    }
}

/* Dark mode support (future-proofing) */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #000000;
        --surface: #1C1C1E;
        --surface-secondary: #2C2C2E;
        --text-primary: #FFFFFF;
        --text-secondary: #AEAEB2;
        --text-tertiary: #8E8E93;
        --gray-100: #2C2C2E;
        --gray-200: #3A3A3C;
        --gray-300: #48484A;
    }
    
    .card {
        background-color: var(--surface);
        border-color: var(--gray-300);
    }
    
    .form-control {
        background-color: var(--surface);
        border-color: var(--gray-300);
        color: var(--text-primary);
    }
    
    .glass-card {
        background: rgba(28, 28, 30, 0.8);
        border-color: rgba(255, 255, 255, 0.1);
    }
}
