/**
 * Hamid Reseller Hub - Modern Frontend Styles (Storefront, Checkout, Reseller Portal, Wholesale)
 */
:root {
    --h-brand: #000000;
    --h-primary: #facc15;
    --h-primary-hover: #eab308;
    --h-success: #10b981;
    --h-warning: #f59e0b;
    --h-danger: #ef4444;
    --h-surface: #ffffff;
    --h-bg: #f8fafc;
    --h-border: #e2e8f0;
    --h-text: #09090b;
    --h-text-muted: #71717a;
    --h-radius: 12px;
    --h-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.hamid-portal-container,
.hamid-checkout-container,
.hamid-wholesale-container {
    max-width: 1100px;
    width: 100%;
    margin: 25px auto 40px auto;
    padding: 0 16px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--h-text);
    box-sizing: border-box;
}

/* 1-Page Checkout Grid */
.hamid-checkout-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: start;
}

.hamid-checkout-grid > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .hamid-checkout-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .hamid-checkout-grid .hamid-summary-card,
    .hamid-checkout-grid .hamid-form-card[style*="sticky"] {
        position: static !important;
        top: auto !important;
    }
}

.hamid-form-card {
    background: linear-gradient(180deg, rgba(254, 240, 138, 0.35) 0%, rgba(255, 251, 235, 0.2) 20%, #ffffff 45%, #ffffff 100%);
    border: 1px solid rgba(250, 204, 21, 0.3);
    border-radius: var(--h-radius);
    padding: 24px;
    box-shadow: var(--h-shadow);
    margin-bottom: 24px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.hamid-form-card h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 700;
    color: var(--h-brand);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hamid-form-group {
    margin-bottom: 16px;
    box-sizing: border-box;
}

.hamid-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--h-text);
    margin-bottom: 6px;
}

.hamid-input,
.hamid-select,
.hamid-textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--h-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--h-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.hamid-input:focus,
.hamid-select:focus,
.hamid-textarea:focus {
    outline: none;
    border-color: var(--h-primary);
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
}

/* Payment Method Switcher */
.hamid-payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.hamid-payment-tile {
    border: 2px solid var(--h-border);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.hamid-payment-tile.active {
    border-color: #facc15;
    background: #fefce8;
}

.hamid-payment-tile h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.hamid-payment-tile p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: var(--h-text-muted);
}

.hamid-mobile-banking-box {
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-sizing: border-box;
    word-break: break-word;
}

/* Responsive Mobile Rules for 1-Page Checkout */
@media (max-width: 639px) {
    .hamid-checkout-container {
        padding: 0 10px !important;
        margin: 10px auto 25px auto !important;
    }
    .hamid-form-card {
        padding: 16px 12px !important;
        margin-bottom: 16px !important;
        border-radius: 12px !important;
    }
    .hamid-form-card h3 {
        font-size: 16px !important;
        margin-bottom: 14px !important;
    }
    .hamid-input,
    .hamid-select,
    .hamid-textarea {
        padding: 10px 12px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
    }
    .hamid-payment-options {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .hamid-payment-tile {
        padding: 12px 14px !important;
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .hamid-payment-tile h4 {
        font-size: 14px !important;
    }
    .hamid-payment-tile p {
        font-size: 11.5px !important;
        margin-top: 2px !important;
    }
    .hamid-btn-submit {
        padding: 14px 16px !important;
        font-size: 15px !important;
    }
    .hamid-chk-item {
        padding: 8px 10px !important;
        gap: 10px !important;
    }
}

.hamid-btn-submit {
    width: 100%;
    background: #facc15;
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px 0 rgba(250, 204, 21, 0.35);
}

.hamid-btn-submit:hover {
    background: #eab308;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(250, 204, 21, 0.45);
}

/* Reseller Dashboard Modern UI */
.hamid-reseller-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.reseller-welcome h2 {
    color: #fff;
    margin: 0;
    font-size: 24px;
}

.reseller-welcome p {
    margin: 6px 0 0 0;
    color: #94a3b8;
}

.reseller-ref-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reseller-ref-box input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    width: 240px;
    outline: none;
}

.reseller-ref-box button {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
