/* ----------------------------------------------
   ACCOUNT PAGE STYLES - Enhanced Modern Design
---------------------------------------------- */

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.account-container {
    max-width: 1200px;
    margin: 100px auto 40px;
    background: #fff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.account-container h1 {
    text-align: center;
    font-size: 42px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Enhanced Menu Buttons */
.account-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid #e0e0e0;
}

.account-menu button {
    padding: 18px 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #667eea;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.account-menu button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.account-menu button:hover::before {
    left: 0;
}

.account-menu button:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    border-color: transparent;
}

.account-menu button:active {
    transform: translateY(-1px);
}

/* Active button state */
.account-menu button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.account-menu button.active::before {
    left: 0;
}

/* Enhanced Section Card */
.account-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.account-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.account-section h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: #667eea;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-section h2::before {
    content: "●";
    color: #667eea;
    font-size: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enhanced Profile details */
.account-section p {
    font-size: 18px;
    padding: 18px 0;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.account-section p:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding-left: 15px;
    border-radius: 8px;
    border-bottom-color: #667eea;
}

.account-section p:last-child {
    border-bottom: none;
}

.account-section strong {
    color: #667eea;
    font-weight: 700;
    display: inline-block;
    min-width: 150px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

/* Enhanced Form Styling */
#editForm, #addressForm {
    display: grid;
    gap: 25px;
    margin-top: 20px;
}

#editForm input, #addressForm input, #addressForm select {
    padding: 18px 24px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    font-weight: 500;
}

#editForm input:focus, #addressForm input:focus, #addressForm select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: white;
    transform: translateY(-2px);
}

/* Enhanced Primary Button */
.btn-primary {
    padding: 24px 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 10px 0;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

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

/* Enhanced Secondary Button */
.btn-secondary {
    padding: 24px 48px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #667eea;
    border: 3px solid #667eea;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 10px 0;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

/* Action Buttons (Edit, Save, Cancel, etc.) */
.action-btn {
    padding: 20px 40px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 8px;
    min-width: 160px;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.action-btn:hover::before {
    left: 0;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4);
}

/* Edit Button Variant */
.action-btn.edit-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

.action-btn.edit-btn::before {
    background: linear-gradient(135deg, #ff8c00 0%, #ffc107 100%);
}

.action-btn.edit-btn:hover {
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
}

/* Cancel Button Variant */
.action-btn.cancel-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

.action-btn.cancel-btn::before {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
}

.action-btn.cancel-btn:hover {
    box-shadow: 0 10px 30px rgba(108, 117, 125, 0.4);
}

/* Delete/Danger Button Variant */
.action-btn.danger-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.action-btn.danger-btn::before {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
}

.action-btn.danger-btn:hover {
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
}

/* Form Button Overrides */
form button, form input[type="submit"] {
    padding: 20px 40px !important;
    font-size: 18px !important;
    min-height: 56px !important;
    border-radius: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Ensure all buttons in account sections are large */
.account-section button:not(.account-menu button) {
    padding: 20px 40px;
    font-size: 18px;
    min-height: 56px;
    border-radius: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px 4px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Points section button enhancement */
#redeemBtn {
    padding: 24px 48px !important;
    font-size: 20px !important;
    min-height: 64px !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4) !important;
}

#redeemBtn:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 45px rgba(102, 126, 234, 0.6) !important;
}

#redeemBtn:disabled {
    background: linear-gradient(135deg, #cccccc 0%, #999999 100%) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    color: #666 !important;
}

#redeemBtn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Button Groups */
.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.button-group .action-btn {
    flex: 1;
    min-width: 180px;
}

/* Enhanced Orders */
#ordersList {
    margin-top: 25px;
    display: grid;
    gap: 20px;
}

.order-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.order-card:hover::before {
    width: 8px;
}

.order-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.order-card h3 {
    margin-bottom: 20px;
    color: #667eea;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-card p {
    font-size: 16px;
    color: #666;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
}

.order-card p:last-child {
    border-bottom: none;
}

.order-card strong {
    color: #667eea;
    font-weight: 700;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .account-container {
        margin: 80px 15px 20px;
        padding: 30px 25px;
    }

    .account-container h1 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .account-menu {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .account-menu button {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }

    .account-section {
        padding: 25px;
    }

    .account-section h2 {
        font-size: 24px;
    }

    #editForm, #addressForm {
        gap: 20px;
    }

    #editForm input, #addressForm input, #addressForm select {
        padding: 16px 20px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn-primary, .btn-secondary {
        padding: 20px 32px;
        font-size: 18px;
        width: 100%;
        min-height: 56px;
    }
    
    .action-btn {
        padding: 18px 32px;
        font-size: 16px;
        min-height: 52px;
        min-width: 140px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .action-btn {
        width: 100%;
        min-width: auto;
    }

    .order-card {
        padding: 20px;
    }

    .order-card h3 {
        font-size: 20px;
    }

    .order-card p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .account-container {
        margin: 70px 10px 15px;
        padding: 25px 20px;
    }

    .account-container h1 {
        font-size: 28px;
    }

    .account-menu {
        padding: 12px;
    }

    .account-menu button {
        padding: 14px 20px;
        font-size: 15px;
    }

    .account-section {
        padding: 20px;
    }

    .account-section h2 {
        font-size: 22px;
    }

    .account-section p {
        font-size: 16px;
        padding: 12px 0;
    }

    .account-section strong {
        min-width: 120px;
        font-size: 14px;
    }

    #editForm input, #addressForm input, #addressForm select {
        padding: 14px 18px;
        font-size: 16px;
    }

    .btn-primary, .btn-secondary {
        padding: 18px 28px;
        font-size: 16px;
        min-height: 52px;
    }
    
    .action-btn {
        padding: 16px 28px;
        font-size: 15px;
        min-height: 48px;
        min-width: 120px;
    }
}



/* ----------------------------------------------
   ENHANCED POINTS SECTION STYLES
---------------------------------------------- */

.points-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.points-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    color: white;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.points-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: all 0.4s ease;
}

.points-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.5);
}

.points-card:hover::before {
    top: -30%;
    right: -30%;
}

.points-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.points-value {
    font-size: 48px;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Wallet Section Styles */
.wallet-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.wallet-card {
    background: linear-gradient(135deg, #ff6f61 0%, #ff9800 100%);
    padding: 35px;
    border-radius: 20px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 111, 97, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: all 0.4s ease;
}

.wallet-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 111, 97, 0.5);
}

.wallet-card:hover::before {
    top: -30%;
    right: -30%;
}

.wallet-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.wallet-value {
    font-size: 48px;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wallet-card small {
    display: block;
    margin-top: 10px;
    opacity: 0.8;
    font-size: 12px;
}

.withdrawal-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px;
    border-radius: 16px;
    border: 2px solid #ff6f61;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(255, 111, 97, 0.1);
}

.withdrawal-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.withdrawal-form input {
    padding: 12px 20px;
    border: 2px solid #ff6f61;
    border-radius: 25px;
    font-size: 16px;
    min-width: 200px;
    text-align: center;
}

.withdrawal-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.2);
}

.wallet-history {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.wallet-history h3 {
    margin-bottom: 25px;
    color: #333;
    font-size: 20px;
}

.redeem-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px;
    border-radius: 16px;
    border: 2px solid #667eea;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.1);
}

.redeem-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.redeem-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.redeem-section p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
    font-weight: 500;
}

.redeem-section button {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.redeem-section button:disabled {
    background: linear-gradient(135deg, #cccccc 0%, #999999 100%);
    cursor: not-allowed;
    box-shadow: none;
    color: #666;
}

.redeem-section button:disabled:hover {
    transform: none;
}

.points-history {
    margin-top: 40px;
}

.points-history h3 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.points-history h3::before {
    content: "📊";
    font-size: 28px;
}

.points-transaction {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border: 2px solid #e0e0e0;
    margin-bottom: 20px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.points-transaction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.points-transaction:hover::before {
    width: 8px;
}

.points-transaction:hover {
    border-color: #667eea;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.transaction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.transaction-row p {
    margin: 6px 0;
    padding: 0;
    border: none;
    font-weight: 500;
}

.transaction-row strong {
    font-weight: 700;
    color: #667eea;
}

@media (max-width: 600px) {
    .points-summary {
        grid-template-columns: 1fr;
    }
    
    .points-card {
        padding: 25px;
    }
    
    .points-value {
        font-size: 36px;
    }
    
    .wallet-summary {
        grid-template-columns: 1fr;
    }
    
    .wallet-card {
        padding: 25px;
    }
    
    .wallet-value {
        font-size: 36px;
    }
    
    .withdrawal-section {
        padding: 25px;
    }
    
    .withdrawal-form {
        flex-direction: column;
    }
    
    .withdrawal-form input {
        min-width: 100%;
    }
    
    .redeem-section {
        padding: 25px;
    }
    
    .transaction-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .transaction-row > div:last-child {
        text-align: left !important;
    }
}
/* ----------------------------------------------
   UTR MODAL STYLES
---------------------------------------------- */

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ffffff20 0%, #ffffff40 50%, #ffffff20 100%);
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header .close {
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.modal-header .close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 40px 30px;
}

.modal-body form {
    display: grid;
    gap: 25px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.modal-body input[type="text"],
.modal-body input[type="date"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-sizing: border-box;
}

.modal-body input[type="text"]:focus,
.modal-body input[type="date"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: white;
    transform: translateY(-2px);
}

.modal-body input[type="text"]::placeholder {
    color: #999;
    font-style: italic;
}

.modal-body small {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    font-style: italic;
}

.modal-body .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.modal-body .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.modal-body .btn-primary:hover::before {
    left: 0;
}

.modal-body .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.modal-body .btn-primary:disabled {
    background: linear-gradient(135deg, #cccccc 0%, #999999 100%);
    cursor: not-allowed;
    box-shadow: none;
    color: #666;
}

.modal-body .btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

.modal-body .btn-secondary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #667eea;
    border: 2px solid #667eea;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.modal-body .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.modal-body .btn-secondary:hover::before {
    left: 0;
}

.modal-body .btn-secondary:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Instructions Box */
.modal-body div[style*="background: #e3f2fd"] {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%) !important;
    border: 2px solid #2196f3 !important;
    border-radius: 12px !important;
    position: relative;
    overflow: hidden;
}

.modal-body div[style*="background: #e3f2fd"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.modal-body h4 {
    color: #1976d2 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body ul {
    margin: 0 !important;
    padding-left: 25px !important;
}

.modal-body li {
    color: #666 !important;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.5;
}

/* Button Container */
.modal-body div[style*="display: flex"] {
    display: flex !important;
    gap: 15px !important;
    margin-top: 30px !important;
}

.modal-body div[style*="display: flex"] button {
    flex: 1;
    min-height: 50px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-width: none;
    }
    
    .modal-header {
        padding: 20px 25px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 30px 25px;
    }
    
    .modal-body input[type="text"],
    .modal-body input[type="date"] {
        padding: 14px 18px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .modal-body div[style*="display: flex"] {
        flex-direction: column !important;
    }
    
    .modal-body div[style*="display: flex"] button {
        width: 100% !important;
        flex: none !important;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
        width: 98%;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 18px 20px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .modal-body input[type="text"],
    .modal-body input[type="date"] {
        padding: 12px 16px;
    }
}