:root {
    --primary: #1fd655; /* 23 Hour Tees Green */
    --primary-hover: #17b946;
    --primary-glow: rgba(31, 214, 85, 0.2);
    --dark: #ffffff;
    --dark-surface: #ffffff;
    --glass-border: rgba(0, 0, 0, 0.08);
    --light-text: #222222;
    --gray-text: #666666;
    --border: #e2e2e2;
    --font: 'Outfit', 'Inter', system-ui, sans-serif;
}

/* App Container */
.ht23-app-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    color: var(--light-text);
    font-family: var(--font);
    padding: 40px 5%;
    background: #fdfdfd;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--glass-border);
    position: relative;
    overflow: hidden;
}

.ht23-app-container * {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

.ht23-app-container h1,
.ht23-app-container h2,
.ht23-app-container h3,
.ht23-app-container h4,
.ht23-app-container h5,
.ht23-app-container p,
.ht23-app-container label {
    color: var(--light-text) !important;
    margin-top: 0;
}

.ht23-app-container p {
    color: var(--gray-text) !important;
}

/* Header & Stepper */
.ht23-header {
    text-align: center;
    margin-bottom: 30px;
}

.ht23-header h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ht23-stepper-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--gray-text);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-dot.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.15);
}

.step-dot.completed {
    background: var(--primary-hover);
    color: var(--dark);
}

.step-line {
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .step-line { width: 20px; }
    .ht23-app-container { padding: 30px 20px; border-radius: 16px; }
    .step-dot { width: 30px; height: 30px; font-size: 0.85rem; }
}

/* Steps */
.ht23-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.ht23-step.active {
    display: block;
}

.ht23-step h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

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

/* Grid & Cards */
.ht23-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ht23-card {
    background: var(--dark-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.ht23-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ht23-card:hover {
    border-color: rgba(31, 214, 85, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), 0 0 20px var(--primary-glow);
}

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

.ht23-card.selected {
    border-color: var(--primary);
    background: rgba(31, 214, 85, 0.05);
    box-shadow: 0 0 0 1px var(--primary), 0 10px 30px var(--primary-glow);
}

.ht23-card h4 {
    color: var(--light-text) !important;
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.ht23-card p {
    color: var(--gray-text) !important;
    font-size: 0.9rem;
    line-height: 1.4;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.swatch {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1), inset 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.swatch:hover {
    transform: scale(1.15) translateY(-2px);
    border-color: rgba(255,255,255,0.5);
    z-index: 2;
}

.swatch.selected {
    border-color: var(--primary);
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--primary), 0 0 15px var(--primary-glow);
}

/* Sizing Chart */
.ht23-sizing-chart {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.size-input-group {
    background: var(--dark-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    flex: 1 1 80px;
}

.size-input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.size-input-group input {
    width: 100%;
    background: var(--dark);
    border: 1px solid var(--border);
    color: var(--light-text);
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-size: 1.1rem;
    font-family: inherit;
}

.total-qty {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: right;
    color: var(--primary);
}

/* =========================================
   Design Studio — Step 4
   ========================================= */
.ht23-designer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 680px) {
    .ht23-designer-layout { grid-template-columns: 1fr; }
}

.ht23-logo-panel h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.logo-zone-item {
    background: var(--dark-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

/* Mockup */
.ht23-mockup-panel {
    position: sticky;
    top: 20px;
}

.mockup-view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: center;
}

.mockup-view-btn {
    flex: 1;
    padding: 10px 0;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--gray-text);
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mockup-view-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--light-text);
}

.mockup-view-btn.active {
    border-color: var(--primary);
    background: rgba(31, 214, 85, 0.1);
    color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.mockup-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

#garment-display {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

#garment-display svg {
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}

.logo-overlay {
    position: absolute;
    pointer-events: none;
}

/* Forms & Buttons */
.ht23-select {
    width: 100%;
    padding: 12px;
    background: var(--dark-surface);
    border: 1px solid var(--border);
    color: var(--light-text);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    margin-top: 10px;
}

.ht23-form-group {
    margin-bottom: 15px;
}

.ht23-form-group input {
    width: 100%;
    padding: 12px;
    background: var(--dark-surface);
    border: 1px solid var(--border);
    color: var(--light-text);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.ht23-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.ht23-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff !important;
}

.ht23-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, #17b946 100%);
    color: #0a0a0c !important;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.ht23-btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}

.ht23-btn.secondary {
    background: #ffffff;
    color: var(--light-text);
    border: 1px solid var(--border);
}

.ht23-btn.secondary:hover:not(:disabled) {
    background: #f7f7f9;
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

.ht23-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ht23-btn.outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    display: inline-block;
}

.ht23-btn.outline:hover {
    background: rgba(31, 214, 85, 0.1);
}

.full-width {
    width: 100%;
}

.ht23-review-box {
    background: var(--dark-surface);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.ht23-review-box p {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* =========================================
   Success Screen
   ========================================= */
.ht23-success-screen {
    text-align: center;
    padding: 50px 30px;
    animation: fadeIn 0.5s ease-in-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 40px rgba(31, 214, 85, 0.45);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.ht23-success-screen h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.success-sub {
    color: var(--gray-text);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.success-ref-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--dark-surface);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 18px 40px;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(31, 214, 85, 0.15);
}

.success-ref-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-text);
    margin-bottom: 6px;
}

.success-ref-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 2px;
    font-family: monospace;
}

.success-note {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
