/* =============================================
   MADE IMPORTS SYSTEM 5.1 – GLASS SUITE CSS
   Premium glassmorphism design system
   ============================================= */

/* --- CSS VARIABLES --- */
:root {
    --made-glass-bg: rgba(255, 255, 255, 0.65);
    --made-glass-border: rgba(255, 255, 255, 0.4);
    --made-glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
    --made-red: #FC2B02;
    --made-red-light: #ff5e3a;
    --made-dark: #061A35;
    --made-dark-light: #162a47;
    --made-text: #2d3748;
    --made-text-muted: #64748b;
    --made-success: #10b981;
    --made-warning: #f59e0b;
    --made-danger: #ef4444;
    --made-info: #3b82f6;
    --made-radius: 20px;
    --made-radius-sm: 12px;
    --made-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --made-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
}

/* --- GLASSMORPHISM BASE --- */
.made-glass-card,
.made-calculator-container,
.made-chat-container,
.made-frontend-form {
    background: var(--made-glass-bg);
    box-shadow: var(--made-glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--made-radius);
    border: 1px solid var(--made-glass-border);
    padding: 25px;
    margin: 15px 0;
    transition: transform var(--made-transition), box-shadow var(--made-transition);
    font-family: var(--made-font);
}

.made-glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.18);
}

/* --- GLOBAL BUTTONS --- */
.made-btn-primary {
    background: linear-gradient(135deg, var(--made-red) 0%, var(--made-red-light) 100%);
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(252, 43, 2, 0.25);
    transition: all var(--made-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.4;
    font-family: var(--made-font);
}

.made-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(252, 43, 2, 0.35);
    filter: brightness(1.05);
}

.made-btn-primary:active {
    transform: translateY(0);
}

.made-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    filter: saturate(0.5);
}

.made-btn-primary:focus-visible {
    outline: 3px solid rgba(252, 43, 2, 0.4);
    outline-offset: 2px;
}

/* --- GLOBAL INPUTS --- */
.made-glass-card input[type="text"],
.made-glass-card input[type="number"],
.made-glass-card input[type="email"],
.made-glass-card input[type="tel"],
.made-glass-card input[type="password"],
.made-glass-card select,
.made-glass-card textarea,
.made-calculator-container input,
.made-calculator-container select,
.made-calculator-container textarea,
.made-frontend-form input,
.made-frontend-form select,
.made-frontend-form textarea {
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--made-radius-sm);
    padding: 12px 14px;
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: var(--made-font);
    color: var(--made-text);
    transition: all var(--made-transition);
}

.made-glass-card input:focus,
.made-glass-card select:focus,
.made-glass-card textarea:focus,
.made-calculator-container input:focus,
.made-calculator-container select:focus,
.made-frontend-form input:focus,
.made-frontend-form select:focus,
.made-frontend-form textarea:focus {
    outline: none;
    border-color: var(--made-red);
    background: white;
    box-shadow: 0 0 0 3px rgba(252, 43, 2, 0.08);
}

/* --- ADMIN GRID SYSTEM --- */
.made-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* --- ADMIN SPECIFIC STYLES --- */
.made-admin-title {
    font-size: 1.6em;
    color: var(--made-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-weight: 700;
}

.made-admin-title i {
    color: var(--made-red);
    font-size: 0.9em;
}

.made-select-styled {
    background: white;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--made-radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    min-width: 300px;
    cursor: pointer;
    transition: all var(--made-transition);
}

.made-select-styled:focus {
    border-color: var(--made-red);
    box-shadow: 0 0 0 3px rgba(252, 43, 2, 0.08);
    outline: none;
}

/* --- ORDER CARDS --- */
.made-order-card {
    position: relative;
    overflow: hidden;
}

.made-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.made-order-store {
    font-weight: 600;
    color: var(--made-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
}

.made-order-tracking {
    font-size: 0.8em;
    color: var(--made-text-muted);
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.04);
    padding: 3px 8px;
    border-radius: 6px;
}

.made-order-name {
    margin: 5px 0;
    color: var(--made-dark);
    font-size: 1.1em;
}

.made-order-detail {
    font-size: 0.85em;
    color: var(--made-text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

.made-order-status select {
    width: 100%;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    background: white;
    font-size: 13px;
    cursor: pointer;
}

.made-order-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.made-order-actions .button {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

/* --- FORM HELPERS --- */
.made-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.made-form-field {
    margin-bottom: 14px;
}

.made-form-field label {
    display: block;
    font-weight: 600;
    color: var(--made-dark);
    margin-bottom: 6px;
    font-size: 0.9em;
}

.made-form-inline {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* --- DATA TABLES --- */
.made-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.made-data-table thead th {
    background: rgba(6, 26, 53, 0.05);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--made-dark);
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.made-data-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.made-data-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.made-data-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--made-text);
}

.made-data-table tbody tr:hover {
    background: rgba(252, 43, 2, 0.02);
}

/* --- CATEGORY TAGS --- */
.made-category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.made-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    color: var(--made-dark);
    font-weight: 500;
}

.made-tag-remove {
    background: none;
    border: none;
    color: var(--made-danger);
    font-size: 16px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity var(--made-transition);
}

.made-tag-remove:hover {
    opacity: 1;
}

/* --- COBROS / BALANCE --- */
.made-abonos-list {
    margin-top: 16px;
}

.made-abonos-list h4 {
    font-size: 0.9em;
    color: var(--made-dark);
    margin-bottom: 8px;
}

.made-abonos-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.made-abonos-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 13px;
}

.made-abonos-list li strong {
    color: var(--made-success);
}

.made-ref {
    color: var(--made-text-muted);
    font-size: 0.85em;
}

.made-date {
    color: var(--made-text-muted);
    font-size: 0.8em;
    margin-left: auto;
}

.made-balance-card {
    padding: 30px;
}

.made-balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 1em;
}

.made-balance-item span {
    color: var(--made-text-muted);
}

.made-balance-total {
    padding-top: 12px;
}

.made-balance-total strong {
    font-size: 1.4em;
}

.made-paid {
    color: var(--made-success) !important;
}

.made-debt {
    color: var(--made-danger) !important;
}

/* --- SETTINGS --- */
.made-settings-section {
    margin-bottom: 20px;
}

.made-settings-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--made-dark);
    font-size: 1.2em;
    margin-top: 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 12px;
}

.made-settings-section h2 i {
    color: var(--made-red);
}

/* --- CHAT MODULE --- */
.made-chat-container {
    max-width: 480px;
    margin: 20px auto;
    padding: 0;
    overflow: hidden;
}

#made-chat-header {
    background: linear-gradient(135deg, var(--made-dark) 0%, var(--made-dark-light) 100%);
    color: white;
    padding: 18px 20px;
    font-size: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--made-radius) var(--made-radius) 0 0;
}

#made-chat-messages {
    background: rgba(248, 250, 252, 0.9);
    height: 350px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

#made-chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0 0 var(--made-radius) var(--made-radius);
}

#made-chat-input-area input {
    flex: 1;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 25px;
    padding: 10px 16px;
    font-size: 14px;
    margin: 0;
}

#made-chat-input-area input:focus {
    border-color: var(--made-red);
    box-shadow: 0 0 0 3px rgba(252, 43, 2, 0.06);
}

#made-chat-input-area .made-btn-primary {
    padding: 10px 18px;
    font-size: 13px;
    white-space: nowrap;
}

.made-message {
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.93em;
    line-height: 1.5;
    max-width: 82%;
    animation: fadeSlideIn 0.3s ease;
    word-wrap: break-word;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.made-user-message {
    background: linear-gradient(135deg, var(--made-red) 0%, var(--made-red-light) 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    box-shadow: 0 3px 12px rgba(252, 43, 2, 0.15);
}

.made-bot-message {
    background: white;
    color: var(--made-text);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* --- OLD CALCULATOR (compat) --- */
.made-calculator-container {
    max-width: 500px;
    margin: 40px auto;
}

.input-group {
    margin-bottom: 14px;
}

.input-group label {
    font-weight: 600;
    color: var(--made-dark);
    display: block;
    margin-bottom: 6px;
    font-size: 0.9em;
}

/* =============================================
   NEW SHIPPING CALCULATOR
   ============================================= */
.made-calc-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 16px;
    font-family: var(--made-font);
}

.made-calc-header {
    text-align: center;
    margin-bottom: 36px;
}

.made-calc-title {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--made-dark);
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.made-calc-accent {
    color: var(--made-red);
    border-bottom: 4px solid var(--made-red);
    padding-bottom: 2px;
}

.made-calc-subtitle {
    color: var(--made-text-muted);
    font-size: 0.95em;
    font-weight: 500;
    margin: 0;
}

/* Layout */
.made-calc-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: start;
}

.made-calc-form-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Cards */
.made-calc-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.made-calc-card-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--made-dark);
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.made-calc-card-title i {
    color: var(--made-red);
}

/* Grids */
.made-calc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.made-calc-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

/* Fields */
.made-calc-field {
    display: flex;
    flex-direction: column;
}

.made-calc-label {
    display: block;
    font-size: 0.7em;
    font-weight: 700;
    color: var(--made-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.made-calc-input {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    font-family: var(--made-font);
    color: var(--made-text);
    transition: all 0.2s ease;
    box-sizing: border-box;
    margin: 0;
}

.made-calc-input:focus {
    outline: none;
    border-color: var(--made-info);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

/* Input with prefix ($) */
.made-calc-input-prefix {
    position: relative;
}

.made-calc-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--made-text-muted);
    font-weight: 700;
    font-size: 14px;
    z-index: 1;
}

.made-calc-input-with-prefix {
    padding-left: 30px !important;
}

/* Dimensions Box */
.made-calc-dims-box {
    margin-top: 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 22px;
    border-radius: 16px;
    border: 1px solid #bfdbfe;
}

.made-calc-dims-title {
    font-size: 0.72em;
    font-weight: 800;
    color: var(--made-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.made-calc-dims-title i {
    color: var(--made-info);
}

.made-calc-dim-label {
    display: block;
    font-size: 0.65em;
    font-weight: 700;
    color: #60a5fa;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.made-calc-dim-input {
    width: 100%;
    background: white;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    font-family: var(--made-font);
    color: var(--made-dark);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.made-calc-dim-input:focus {
    outline: none;
    border-color: var(--made-info);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.made-calc-vol-badge {
    text-align: center;
    margin-top: 14px;
}

.made-calc-vol-badge span {
    display: inline-block;
    background: #2563eb;
    color: white;
    font-size: 0.72em;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Buttons */
.made-calc-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
}

.made-calc-btn-main {
    flex: 1;
    background: var(--made-dark);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(6, 26, 53, 0.15);
    font-family: var(--made-font);
}

.made-calc-btn-main:hover {
    background: var(--made-dark-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(6, 26, 53, 0.2);
}

.made-calc-btn-main:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.made-calc-btn-secondary {
    padding: 16px 28px;
    background: #e2e8f0;
    color: #64748b;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--made-font);
}

.made-calc-btn-secondary:hover {
    background: #cbd5e1;
}

/* Alerts */
.made-calc-alert {
    padding: 14px 18px;
    border-radius: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.82em;
    line-height: 1.6;
}

.made-calc-alert i {
    margin-top: 2px;
    flex-shrink: 0;
    font-size: 1.1em;
}

.made-calc-alert p {
    margin: 0;
}

.made-calc-alert code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95em;
}

.made-calc-alert-info {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.made-calc-alert-info i {
    color: #3b82f6;
}

.made-calc-alert-warn {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    color: #9a3412;
}

.made-calc-alert-warn i {
    color: #f97316;
}

/* ========== RESULTS CARD ========== */
.made-calc-result-col {
    position: sticky;
    top: 30px;
}

.made-calc-result-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.made-calc-result-header {
    background: linear-gradient(135deg, var(--made-red) 0%, var(--made-red-light) 100%);
    padding: 24px;
    text-align: center;
    color: white;
}

.made-calc-result-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.made-calc-result-header p {
    margin: 4px 0 0;
    font-size: 0.82em;
    opacity: 0.8;
    font-style: italic;
}

.made-calc-result-body {
    padding: 24px;
}

.made-calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.made-calc-result-row:last-of-type {
    border-bottom: none;
}

.made-calc-result-label {
    color: var(--made-text-muted);
    font-weight: 500;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.made-calc-result-label i {
    font-size: 0.85em;
    color: #94a3b8;
    width: 16px;
    text-align: center;
}

.made-calc-result-value {
    font-weight: 700;
    color: var(--made-dark);
    font-size: 1em;
}

/* Total */
.made-calc-result-total {
    text-align: center;
    padding-top: 20px;
    margin-top: 8px;
    border-top: 2px solid #f1f5f9;
}

.made-calc-result-total-label {
    font-size: 0.68em;
    font-weight: 700;
    color: var(--made-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 6px;
}

.made-calc-result-total-value {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: var(--made-dark);
}

.made-calc-result-currency {
    font-size: 1.4em;
    font-weight: 800;
    margin-top: 6px;
    margin-right: 4px;
}

#calc-r-total {
    font-size: 3em;
    font-weight: 900;
    line-height: 1;
    transition: all 0.3s ease;
}

/* Pulse animation for total update */
@keyframes calcPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
        color: var(--made-red);
    }

    100% {
        transform: scale(1);
    }
}

.made-calc-pulse {
    animation: calcPulse 0.4s ease;
}

/* WhatsApp Button */
.made-calc-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    background: #25D366;
    color: white !important;
    border: none;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.95em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.2);
    font-family: var(--made-font);
}

.made-calc-btn-whatsapp:hover {
    background: #1ead51;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
}

.made-calc-btn-whatsapp i {
    font-size: 1.2em;
}

/* Footer */
.made-calc-result-footer {
    background: #f8fafc;
    padding: 12px;
    text-align: center;
    font-size: 0.65em;
    color: var(--made-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- ORDER FORM --- */
.made-frontend-form {
    max-width: 600px;
    margin: 30px auto;
    position: relative;
}

.made-frontend-form h2 {
    text-align: center;
    color: var(--made-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* --- SUCCESS / ERROR CARDS --- */
.made-success-card {
    text-align: center;
    border: 2px solid var(--made-success);
}

.made-success-icon {
    font-size: 2.5em;
    color: var(--made-success);
    margin-bottom: 10px;
}

.made-success-card h3 {
    color: var(--made-success);
    font-size: 1.3em;
}

.made-tracking-code {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--made-dark);
    letter-spacing: 2px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.03);
    padding: 12px;
    border-radius: 10px;
}

.made-success-note {
    color: var(--made-text-muted);
    font-size: 0.9em;
}

.made-error-card {
    border: 2px solid var(--made-danger);
    color: var(--made-danger);
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.made-empty-state {
    text-align: center;
    padding: 40px;
}

/* --- TRACKING --- */
.made-tracking-result h3 {
    color: var(--made-dark);
    margin-bottom: 12px;
}

.made-estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.made-tracking-details {
    background: rgba(0, 0, 0, 0.02);
    padding: 14px;
    border-radius: 10px;
    line-height: 1.6;
    font-size: 0.9em;
    margin-bottom: 12px;
}

.made-tracking-meta {
    display: flex;
    gap: 20px;
    color: var(--made-text-muted);
    font-size: 0.85em;
    flex-wrap: wrap;
}

.made-tracking-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- PC BUILDER & VS --- */
.component-selection-area {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 16px 4px 24px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(252, 43, 2, 0.3) transparent;
}

.component-selection-area::-webkit-scrollbar {
    height: 6px;
}

.component-selection-area::-webkit-scrollbar-thumb {
    background: rgba(252, 43, 2, 0.25);
    border-radius: 10px;
}

.component-card {
    min-width: 190px;
    background: white;
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all var(--made-transition);
    position: relative;
    border: 2px solid transparent;
}

.component-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.component-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* .component-card:has(input:checked) – replaced with class for compat */
.component-card.selected,
.component-card:has(input:checked) {
    border-color: var(--made-red);
    box-shadow: 0 8px 25px rgba(252, 43, 2, 0.15);
    background: rgba(252, 43, 2, 0.02);
}

.component-image {
    height: 90px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 10px;
}

.component-title {
    color: var(--made-dark);
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-block h4 {
    margin: 5px 0;
    font-size: 0.85em;
    color: var(--made-dark);
}

.text-block p {
    margin: 0;
    font-size: 0.82em;
    color: var(--made-red);
    font-weight: 700;
}

/* --- SPINNER ANIMATION --- */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* --- SCREEN READER ONLY --- */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* Tablet */
@media (max-width: 768px) {
    .made-admin-grid {
        grid-template-columns: 1fr;
    }

    .made-form-grid {
        grid-template-columns: 1fr;
    }

    .made-order-actions {
        grid-template-columns: 1fr;
    }

    .made-select-styled {
        min-width: 100%;
    }

    .made-calculator-container,
    .made-frontend-form,
    .made-chat-container {
        margin: 15px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .made-tracking-meta {
        flex-direction: column;
        gap: 8px;
    }

    .made-form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    /* Calculator responsive */
    .made-calc-layout {
        grid-template-columns: 1fr;
    }

    .made-calc-result-col {
        position: static;
    }

    .made-calc-grid-2 {
        grid-template-columns: 1fr;
    }

    .made-calc-card {
        padding: 22px;
    }

    .made-calc-title {
        font-size: 1.6em;
    }

    .made-calc-actions {
        flex-direction: column;
    }

    .made-calc-btn-main,
    .made-calc-btn-secondary {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .made-glass-card {
        padding: 18px;
        border-radius: 16px;
    }

    .made-btn-primary {
        padding: 11px 20px;
        font-size: 13px;
        width: 100%;
    }

    .component-card {
        min-width: 160px;
        padding: 12px;
    }

    .component-image {
        height: 70px;
    }

    #made-chat-messages {
        height: 280px;
    }

    .made-balance-total strong {
        font-size: 1.2em;
    }

    .made-tracking-code {
        font-size: 1.4em;
    }

    .made-admin-title {
        font-size: 1.2em;
    }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .made-glass-card:hover {
        transform: none;
    }

    .made-btn-primary:hover {
        transform: none;
    }

    .component-card:hover {
        transform: none;
    }

    .fa-spin {
        animation: none;
    }
}