/* ============================================================
   support.css — Support Center shared styles
   Used by: dashboard.html (creator) and code.html (brand)
   ============================================================ */

/* ── JS-controlled visibility (replaces style="display:none") ── */
.sc-hidden        { display: none; }
.sc-error-msg     { display: none; margin-bottom: 16px; }

/* ── Legal modal icon ── */
.sc-legal-icon    { font-size: 24px; color: var(--primary); margin-right: 12px; }

/* ── Settings group items (Creator Settings page) ── */
.sc-settings-row {
    cursor: pointer;
    padding: 16px;
    background: white;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}
.sc-settings-row:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.sc-settings-row--last { margin-bottom: 0; }
.sc-settings-row-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
.sc-settings-row-icon  { margin-right: 8px; color: var(--text-gray); }
.sc-settings-row-logout { color: #ef4444; }
.sc-settings-row-logout-icon { margin-right: 8px; }
.sc-settings-chevron { color: var(--text-gray); }
.sc-settings-chevron-red { color: #ef4444; }
.sc-settings-hidden-btn { display: none; }

/* ── Premium Header ── */
.sc-premium-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 24px;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(55, 48, 163, 0.3);
}
.sc-premium-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255,255,255,0.03)" d="M0 100 V 50 Q 25 25 50 50 T 100 50 V 100 z"/></svg>') center/cover;
    pointer-events: none;
}
.sc-premium-icon {
    font-size: 48px;
    color: #818cf8;
    margin-bottom: 16px;
}
.sc-premium-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}
.sc-premium-subtitle {
    font-size: 16px;
    color: #c7d2fe;
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
}

/* ── Ticket Tabs ── */
.sc-tabs-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 12px;
    display: inline-flex;
}
.sc-ticket-tab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: none;
}
.sc-ticket-tab:hover {
    color: var(--text-dark);
}
.sc-ticket-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ── Container ── */
.sc-screen-header { margin-top: 80px; }
.sc-screen-sub    { color: var(--text-gray); margin-top: 4px; }
.sc-screen-wrap   { max-width: 800px; padding-bottom: 100px; }

/* ── Landing: hero card ── */
.sc-hero {
    background: white;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.sc-hero-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}
.sc-hero-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}
.sc-hero-desc {
    color: var(--text-gray);
    font-size: 15px;
    max-width: 400px;
    margin: 0 auto;
}

/* ── Landing: card grid ── */
.sc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* ── Landing: individual card (also defined in support.js for dynamic injection) ── */
.support-card {
    background: white;
    border: 1px solid var(--border-light, #e2e8f0);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
.sc-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}
.sc-card-icon--blue  { background: #eff6ff; color: #3b82f6; }
.sc-card-icon--purple{ background: #f3e8ff; color: #a855f7; }
.sc-card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.sc-card-desc  { font-size: 14px; color: var(--text-gray); margin-bottom: 16px; }
.sc-card-link  { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.sc-card-link--blue   { color: #3b82f6; }
.sc-card-link--purple { color: #a855f7; }
.sc-card-link-icon { font-size: 12px; }

/* ── Back button ── */
.sc-back-btn {
    margin-bottom: 24px;
    border: none !important;
    padding-left: 0 !important;
    color: var(--text-gray) !important;
}

/* ── Form container card ── */
.sc-form-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-light, #e2e8f0);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.sc-form-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}
.sc-form-group-md { margin-bottom: 20px; }
.sc-form-group-lg { margin-bottom: 28px; }
.sc-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.sc-input {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-light, #e2e8f0);
    font-size: 15px;
    background: #fafafa;
}
.sc-textarea {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-light, #e2e8f0);
    font-size: 15px;
    background: #fafafa;
    min-height: 140px;
    resize: vertical;
}
.sc-file-input    { display: none; }
.sc-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border: 2px dashed var(--border-light, #e2e8f0);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 14px;
    background: #fafafa;
    transition: border-color 0.2s, color 0.2s;
}
.sc-file-label:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.sc-file-icon { font-size: 18px; }
.sc-submit-btn {
    width: 100%;
    padding: 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* ── Success screen ── */
.sc-success-card {
    display: none;
    background: white;
    padding: 48px 24px;
    border-radius: 16px;
    border: 1px solid var(--border-light, #e2e8f0);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.sc-success-icon {
    width: 64px;
    height: 64px;
    background: #d1fae5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px auto;
}
.sc-success-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.sc-success-desc  { color: var(--text-gray); margin-bottom: 24px; }
.sc-ticket-id-box {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}
.sc-ticket-id-label {
    font-size: 12px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.sc-ticket-id-value {
    font-size: 20px;
    font-weight: 700;
    font-family: monospace;
    color: var(--text-dark);
}
.sc-copy-btn  { margin-top: 12px; border-radius: 8px !important; }
.sc-view-tickets-btn { margin-right: 8px; }
.sc-email-link { text-decoration: none; }

/* ── My Tickets list view ── */
.sc-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.sc-list-title { font-size: 20px; font-weight: 600; margin: 0; }
.sc-list-back-btn {
    border: none !important;
    padding-left: 0 !important;
    color: var(--text-gray) !important;
}
.sc-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
}
.sc-loading-icon { font-size: 24px; margin-bottom: 12px; }

/* ── Settings page phone input ── */
.sc-phone-row    { display: flex; align-items: center; gap: 8px; }
.sc-phone-input  {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e2e8f0);
    outline: none;
    width: 100%;
    max-width: 250px;
    font-family: inherit;
}
.sc-phone-hint   { font-size: 11px; color: #64748b; margin-top: 4px; }
body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; } img, video { -webkit-user-select: none; user-select: none; }

/* Premium Back Button */
.sc-back-btn {
    font-weight: 700 !important;
    color: #4f46e5 !important;
    background-color: #e0e7ff !important;
    border: 1px solid #c7d2fe !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-bottom: 24px !important;
}
.sc-back-btn:hover {
    background-color: #4f46e5 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25) !important;
    border-color: #4f46e5 !important;
}
.sc-back-btn i {
    margin-right: 6px !important;
}

