/* ============================================
   HARD AI Try-On — Dark Theme (Hardstyle Store)
   ============================================ */

.hard-tryon {
    margin: 40px 0;
    font-family: inherit;
    color: #fff;
}

/* ---- Card shell ---- */
.hard-tryon__card {
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 0;
    background: #141414;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .45);
    overflow: hidden;
}

/* ---- Header ---- */
.hard-tryon__head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 28px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    border-bottom: 1px solid #2a2a2a;
}

.hard-tryon__title {
    font-weight: 800;
    font-size: 22px;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.hard-tryon__title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #FF6B00;
    border-radius: 2px;
    margin-right: 12px;
    vertical-align: middle;
}

.hard-tryon__subtitle {
    color: #888;
    font-size: 13px;
    line-height: 1.5;
}

/* ---- Grid ---- */
.hard-tryon__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 860px) {
    .hard-tryon__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- Panels ---- */
.hard-tryon__panel {
    padding: 24px 28px;
    background: transparent;
    border: none;
    border-radius: 0;
}

@media (min-width: 860px) {
    .hard-tryon__panel:first-child {
        border-right: 1px solid #2a2a2a;
    }
}

@media (max-width: 859px) {
    .hard-tryon__panel:first-child {
        border-bottom: 1px solid #2a2a2a;
    }
}

.hard-tryon__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
    color: #FF6B00;
    margin-bottom: 14px;
}

/* ---- Upload drop zone ---- */
.hard-tryon__drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed #333;
    border-radius: 12px;
    padding: 28px 18px;
    cursor: pointer;
    background: #0d0d0d;
    transition: border-color .25s, background .25s;
}

.hard-tryon__drop:hover {
    border-color: #FF6B00;
    background: rgba(255, 107, 0, .04);
}

.hard-tryon__file {
    display: none;
}

.hard-tryon__dropText {
    font-size: 13px;
    font-weight: 600;
    color: #ccc;
    text-align: center;
}

.hard-tryon__hint {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* ---- Consent ---- */
.hard-tryon__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    font-size: 12px;
    color: #999;
    line-height: 1.45;
}

.hard-tryon__consentChk {
    accent-color: #FF6B00;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ---- Preview ---- */
.hard-tryon__previewWrap {
    display: none;
    margin-top: 16px;
}

.hard-tryon__previewTitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #666;
    margin-bottom: 10px;
}

.hard-tryon__preview {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    background: #0d0d0d;
}

/* ---- Button ---- */
.hard-tryon__btn {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border-radius: 10px;
    padding: 14px 20px;
    border: none;
    background: #FF6B00;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .2s, opacity .2s, transform .15s;
}

.hard-tryon__btn:hover:not([disabled]) {
    background: #e05e00;
    transform: translateY(-1px);
}

.hard-tryon__btn:active:not([disabled]) {
    transform: translateY(0);
}

.hard-tryon__btn[disabled] {
    background: #333;
    color: #666;
    cursor: not-allowed;
    opacity: 1;
}

/* ---- Loading state ---- */
.hard-tryon.is-loading .hard-tryon__btn {
    background: #FF6B00;
    opacity: .7;
    cursor: progress;
    animation: hard-pulse 1.8s ease-in-out infinite;
}

@keyframes hard-pulse {
    0%, 100% { opacity: .55; }
    50% { opacity: .85; }
}

/* ---- Status ---- */
.hard-tryon__status {
    margin-top: 12px;
    font-size: 12px;
    color: #999;
    min-height: 18px;
}

.hard-tryon__status.is-error {
    color: #ff4444;
}

/* ---- Result box ---- */
.hard-tryon__resultBox {
    position: relative;
    min-height: 320px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    background: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hard-tryon__resultPlaceholder {
    color: #444;
    font-size: 13px;
    padding: 14px;
    text-align: center;
}

.hard-tryon__result {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---- Download link ---- */
.hard-tryon__download {
    margin-top: 12px;
    display: none;
    gap: 8px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 95%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #FF6B00;
    background: transparent;
    color: #FF6B00;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: background .2s, color .2s;
}

.hard-tryon__download:hover {
    background: #FF6B00;
    color: #fff;
}

/* ---- Notes / tips ---- */
.hard-tryon__notes {
    margin-top: 20px;
    padding: 16px;
    border-radius: 10px;
    background: #0d0d0d;
    border: 1px solid #222;
}

.hard-tryon__notesTitle {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
    color: #888;
}

.hard-tryon__notes ul {
    margin: 0;
    padding-left: 16px;
    color: #666;
    font-size: 12px;
    line-height: 1.6;
}

.hard-tryon__notes ul li + li {
    margin-top: 4px;
}

/* ---- Warning ---- */
.hard-tryon__warning {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 107, 0, .08);
    border: 1px solid rgba(255, 107, 0, .25);
    color: #FF6B00;
    font-size: 12px;
    line-height: 1.45;
}

/* ---- Error ---- */
.hard-tryon__error {
    padding: 14px;
    border: 1px solid rgba(255, 68, 68, .25);
    border-radius: 10px;
    background: rgba(255, 68, 68, .06);
    color: #ff4444;
    font-size: 13px;
}

/* ---- Responsive: Tablet ---- */
@media (max-width: 859px) {
    .hard-tryon__head {
        padding: 20px 22px 16px;
    }
    .hard-tryon__panel {
        padding: 20px 22px;
    }
    .hard-tryon__title {
        font-size: 19px;
    }
    .hard-tryon__resultBox {
        min-height: 260px;
    }
}

/* ---- Responsive: Mobile ---- */
@media (max-width: 480px) {
    .hard-tryon {
        margin: 24px 0;
    }
    .hard-tryon__card {
        border-radius: 12px;
    }
    .hard-tryon__head {
        padding: 16px 16px 14px;
    }
    .hard-tryon__panel {
        padding: 16px;
    }
    .hard-tryon__title {
        font-size: 16px;
    }
    .hard-tryon__title::before {
        height: 16px;
        margin-right: 8px;
    }
    .hard-tryon__subtitle {
        font-size: 12px;
    }
    .hard-tryon__drop {
        padding: 20px 14px;
    }
    .hard-tryon__btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    .hard-tryon__resultBox {
        min-height: 200px;
    }
    .hard-tryon__notes {
        padding: 12px;
    }
}

input.hard-tryon__consentChk {
    border: 2px solid #363636;
    margin-top: 3px;
}