/* AI Photobooth - Modern Professional UI */

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

button {
    outline: none;
}

button:focus,
button:active {
    outline: none;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --danger-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    --dark-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
}

body {
    font-family: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow: hidden;
    min-height: 100vh;
}

.fullscreen {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.screen {
    text-align: center;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Modern Buttons */
.btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
    min-width: 180px;
    min-height: 65px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    outline: none;
}

.btn:focus,
.btn:active {
    outline: none;
}

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

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

.btn-large {
    min-width: 280px;
    min-height: 85px;
    font-size: 1.6rem;
    border-radius: 20px;
    padding: 1.5rem 3rem;
}

.btn-primary {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 8px 32px rgba(17, 153, 142, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(17, 153, 142, 0.5);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.01);
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    border: 2px solid var(--glass-border);
    box-shadow: 0 4px 20px var(--shadow-color);
    margin-top: 1rem;
}

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

.btn-alternate {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 32px rgba(0, 198, 251, 0.4);
}

.btn-alternate:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 198, 251, 0.5);
}

.btn-alternate:active {
    transform: translateY(-2px) scale(1.01);
}

/* Instructions */
.instructions {
    margin-top: 2.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.instructions ol {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    padding-left: 1.5rem;
    line-height: 2;
}

/* Countdown */
.countdown-display {
    font-size: 12rem;
    font-weight: 800;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 1s infinite;
    filter: drop-shadow(0 0 30px rgba(255,255,255,0.3));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.camera-preview {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--glass-bg);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px var(--shadow-color);
}

/* Template Selection - Modern Cards */
.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}

/* Category Cards - Glassmorphism */
.category-card {
    background: var(--glass-bg);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    text-align: center;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(56, 239, 125, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(56, 239, 125, 0.2);
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.category-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.template-count {
    display: inline-block;
    background: var(--success-gradient);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Template Cards */
.template-card {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.template-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(56, 239, 125, 0.5);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.template-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.template-card:hover img {
    transform: scale(1.05);
}

.template-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.template-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Back Button */
.back-button {
    grid-column: 1 / -1;
    background: var(--glass-bg);
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

/* Processing / Spinner */
.spinner {
    width: 80px;
    height: 80px;
    border: 6px solid var(--glass-bg);
    border-top-color: #38ef7d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
    box-shadow: 0 0 20px rgba(56, 239, 125, 0.3);
}

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

.processing-message {
    font-size: 1.4rem;
    margin: 1rem 0;
    font-weight: 500;
}

.processing-note {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Result Display - CENTERED */
.result-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
}

.result-image {
    margin: 1.5rem 0;
    max-width: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-image img {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 3px solid var(--glass-border);
}

.action-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* QR Code */
.qr-container {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    display: inline-block;
    margin: 2rem auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.qr-container img {
    width: 280px;
    height: 280px;
    border-radius: 12px;
}

.note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Error Screen */
.error-icon {
    font-size: 5rem;
    margin: 2rem 0;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.error-message {
    font-size: 1.4rem;
    margin: 2rem 0;
    color: #ffd93d;
    font-weight: 500;
}

/* Status */
.status {
    margin: 2rem 0;
    padding: 1.2rem 2rem;
    background: var(--glass-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

/* ========== CUSTOM MODAL - Modern ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--dark-gradient);
    border-radius: 28px;
    padding: 2.5rem 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.modal-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-btn-confirm {
    background: var(--danger-gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 65, 108, 0.4);
}

.modal-btn-confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 65, 108, 0.5);
}

.modal-btn-cancel {
    background: var(--glass-bg);
    color: white;
    border: 2px solid var(--glass-border);
}

.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ========== RESPONSIVE DESIGN ========== */

/* Height-based adjustments for laptops */
@media screen and (max-height: 800px) {
    body {
        overflow-y: auto;
    }

    .fullscreen {
        height: auto;
        min-height: 100vh;
    }

    .container {
        padding: 1rem 2rem;
    }

    h1 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }

    .btn-large {
        min-width: 200px;
        min-height: 60px;
        font-size: 1.3rem;
        padding: 1rem 2rem;
    }

    .countdown-display {
        font-size: 7rem;
        margin: 1rem 0;
    }

    .camera-preview {
        padding: 1rem;
        margin: 0.8rem 0;
    }

    .template-grid {
        gap: 1rem;
        margin: 1rem 0;
    }

    .category-card {
        padding: 1.2rem 1rem;
    }

    .category-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .category-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .category-card p {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .template-count {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .template-card {
        padding: 0.8rem;
    }

    .template-card img {
        height: 110px;
    }

    .template-card h3 {
        font-size: 1rem;
    }

    .template-card p {
        font-size: 0.8rem;
    }

    .result-image {
        max-width: 380px;
        margin: 1rem 0;
    }

    .result-image img {
        max-height: 40vh;
    }

    .action-buttons {
        margin-top: 1rem;
        gap: 0.8rem;
    }

    .qr-container {
        padding: 1rem;
        margin: 1rem auto;
    }

    .qr-container img {
        width: 180px;
        height: 180px;
    }

    .spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
        margin: 1rem auto;
    }

    .instructions {
        margin-top: 1rem;
        font-size: 0.95rem;
    }

    .back-button {
        padding: 0.7rem;
        font-size: 0.95rem;
    }
}

/* Very short screens */
@media screen and (max-height: 700px) {
    h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .btn-large {
        min-width: 180px;
        min-height: 55px;
        font-size: 1.2rem;
    }

    .countdown-display {
        font-size: 5rem;
        margin: 0.5rem 0;
    }

    .category-icon {
        font-size: 2rem;
    }

    .category-card h3 {
        font-size: 1.1rem;
    }

    .template-card img {
        height: 90px;
    }

    .result-image {
        max-width: 320px;
    }

    .result-image img {
        max-height: 35vh;
    }

    .qr-container img {
        width: 160px;
        height: 160px;
    }
}

/* Large Desktop & 4K */
@media screen and (min-width: 1920px) {
    .container {
        padding: 3rem;
        max-width: 1600px;
        margin: 0 auto;
    }

    h1 {
        font-size: 4.5rem;
    }

    .subtitle {
        font-size: 1.8rem;
    }

    .btn-large {
        min-width: 350px;
        min-height: 100px;
        font-size: 2rem;
    }

    .template-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .qr-container img {
        width: 350px;
        height: 350px;
    }
}

/* Standard Laptop */
@media screen and (min-width: 1366px) and (max-width: 1919px) {
    .container {
        padding: 2rem;
        max-width: 1300px;
    }

    .screen {
        max-width: 950px;
    }

    h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .btn {
        padding: 1.2rem 2.2rem;
        font-size: 1.15rem;
    }

    .btn-large {
        min-width: 260px;
        min-height: 80px;
        font-size: 1.6rem;
    }

    .countdown-display {
        font-size: 10rem;
    }

    .template-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .category-card {
        padding: 1.8rem 1.3rem;
    }

    .category-icon {
        font-size: 3.5rem;
    }

    .category-card h3 {
        font-size: 1.5rem;
    }

    .template-card img {
        height: 160px;
    }

    .qr-container img {
        width: 280px;
        height: 280px;
    }
}

/* Small Laptop & Notebook */
@media screen and (min-width: 1025px) and (max-width: 1365px) {
    .container {
        padding: 1.5rem;
        max-width: 1100px;
    }

    .screen {
        max-width: 900px;
    }

    h1 {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .btn {
        padding: 1.1rem 2rem;
        font-size: 1.1rem;
    }

    .btn-large {
        min-width: 240px;
        min-height: 75px;
        font-size: 1.5rem;
    }

    .countdown-display {
        font-size: 9rem;
    }

    .template-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }

    .category-card {
        padding: 1.5rem 1rem;
    }

    .category-icon {
        font-size: 3rem;
    }

    .category-card h3 {
        font-size: 1.4rem;
    }

    .template-card img {
        height: 140px;
    }

    .qr-container img {
        width: 250px;
        height: 250px;
    }

    .result-image {
        max-width: 450px;
    }
}

/* Tablet */
@media screen and (max-width: 1024px) {
    .container {
        padding: 1.2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        min-width: 160px;
        min-height: 60px;
    }

    .btn-large {
        min-width: 220px;
        min-height: 70px;
        font-size: 1.4rem;
    }

    .countdown-display {
        font-size: 8rem;
    }

    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-icon {
        font-size: 3rem;
    }

    .category-card h3 {
        font-size: 1.4rem;
    }

    .category-card p {
        font-size: 1rem;
    }

    .template-card img {
        height: 150px;
    }

    .qr-container img {
        width: 220px;
        height: 220px;
    }
}

/* Mobile Landscape */
@media screen and (max-width: 768px) and (orientation: landscape) {
    body {
        overflow-y: auto;
    }

    .fullscreen {
        height: auto;
        min-height: 100vh;
    }

    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .countdown-display {
        font-size: 5rem;
        margin: 0.8rem 0;
    }

    .camera-preview {
        padding: 0.8rem;
        margin: 0.8rem 0;
    }

    .template-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .category-card {
        padding: 1rem 0.8rem;
    }

    .category-icon {
        font-size: 2rem;
    }

    .category-card h3 {
        font-size: 1rem;
    }

    .category-card p {
        font-size: 0.8rem;
    }

    .template-card img {
        height: 100px;
    }
}

/* Mobile Portrait */
@media screen and (max-width: 768px) and (orientation: portrait) {
    body {
        overflow-y: auto;
    }

    .fullscreen {
        height: auto;
        min-height: 100vh;
    }

    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2.2rem;
        margin-bottom: 0.6rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 1rem 1.8rem;
        font-size: 1.1rem;
        min-width: 150px;
        min-height: 55px;
    }

    .btn-large {
        min-width: 200px;
        min-height: 70px;
        font-size: 1.3rem;
    }

    .instructions {
        font-size: 0.95rem;
    }

    .instructions ol {
        max-width: 100%;
        padding-left: 1.2rem;
        line-height: 1.8;
    }

    .countdown-display {
        font-size: 7rem;
        margin: 1rem 0;
    }

    .camera-preview {
        padding: 0.8rem;
        margin: 1rem 0;
    }

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

    .category-card {
        padding: 1.5rem 1.2rem;
    }

    .category-icon {
        font-size: 3rem;
    }

    .category-card h3 {
        font-size: 1.5rem;
    }

    .category-card p {
        font-size: 1rem;
    }

    .template-card img {
        height: 180px;
    }

    .template-card h3 {
        font-size: 1.2rem;
    }

    .template-card p {
        font-size: 0.9rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        max-width: 300px;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .qr-container {
        padding: 1.2rem;
    }

    .qr-container img {
        width: 200px;
        height: 200px;
    }

    .result-image {
        max-width: 100%;
        margin: 1rem 0;
    }

    .result-image img {
        max-height: 45vh;
    }

    .spinner {
        width: 60px;
        height: 60px;
        border-width: 5px;
    }

    .processing-message {
        font-size: 1.2rem;
    }

    .error-icon {
        font-size: 4rem;
        margin: 1.5rem 0;
    }

    .error-message {
        font-size: 1.2rem;
        margin: 1.5rem 0;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .container {
        padding: 0.8rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        min-width: 130px;
        min-height: 50px;
        letter-spacing: 1px;
    }

    .btn-large {
        min-width: 180px;
        min-height: 60px;
        font-size: 1.2rem;
    }

    .countdown-display {
        font-size: 5rem;
    }

    .category-icon {
        font-size: 2.5rem;
    }

    .category-card h3 {
        font-size: 1.3rem;
    }

    .category-card p {
        font-size: 0.9rem;
    }

    .template-card img {
        height: 160px;
    }

    .qr-container img {
        width: 180px;
        height: 180px;
    }

    .instructions {
        font-size: 0.9rem;
    }

    .back-button {
        font-size: 0.95rem;
        padding: 0.7rem;
    }

    /* Modal responsive */
    .modal-content {
        padding: 1.8rem 1.2rem;
        max-width: 92%;
        border-radius: 20px;
    }

    .modal-icon {
        font-size: 2.8rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-message {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .modal-btn {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        min-width: 120px;
    }

    .modal-buttons {
        flex-direction: column;
        width: 100%;
    }

    .modal-buttons .modal-btn {
        width: 100%;
    }
}

/* Extra Small Mobile */
@media screen and (max-width: 360px) {
    h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        min-width: 110px;
        min-height: 48px;
    }

    .btn-large {
        min-width: 160px;
        min-height: 55px;
        font-size: 1.1rem;
    }

    .countdown-display {
        font-size: 4rem;
    }

    .category-card {
        padding: 1.2rem 0.8rem;
    }

    .category-icon {
        font-size: 2rem;
    }

    .category-card h3 {
        font-size: 1.1rem;
    }

    .qr-container {
        padding: 0.8rem;
    }

    .qr-container img {
        width: 160px;
        height: 160px;
    }

    .modal-content {
        padding: 1.5rem 1rem;
    }

    .modal-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .modal-title {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .modal-message {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .modal-btn {
        padding: 0.75rem 1.2rem;
        font-size: 0.95rem;
        min-width: 100px;
    }
}
