/* ══════════════════════════════════════════════════════════
   AI SOCIAL MEDIA AGENT — Public Styles
   Design system: BrandBrahma / Plus Jakarta Sans dark theme
   Colours: #0C0A1A bg · #534AB7 purple · #1D9E75 teal · #D85A30 coral
══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Scoped reset (same pattern as source file) ── */
#aisms-wrap,
#aisms-wrap *,
#aisms-wrap *::before,
#aisms-wrap *::after {
    box-sizing: border-box !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    word-wrap: break-word !important;
}

#aisms-wrap {
    background: #0C0A1A;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    overflow-x: hidden;
    font-size: 15px;
    color: #E8E6F0;
    line-height: 1.6;
}

/* ── Inner container ── */
#aisms-wrap .aw-i {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ══════════════════════════════════════════════════════════
   TYPOGRAPHY TOKENS
══════════════════════════════════════════════════════════ */
#aisms-wrap .aw-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7B6FE0;
    background: rgba(83,74,183,0.12);
    border: 1px solid rgba(83,74,183,0.25);
    padding: 6px 20px;
    border-radius: 30px;
    text-decoration: none;
}

#aisms-wrap .aw-tag-dot {
    width: 6px; height: 6px;
    background: #1D9E75;
    border-radius: 50%;
    display: inline-block;
    animation: aw-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes aw-pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:0.4; transform:scale(1.6); }
}

#aisms-wrap .aw-h1 {
    font-size: clamp(36px, 6vw, 66px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #fff;
}

#aisms-wrap .aw-h2 {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 14px;
}

#aisms-wrap .aw-stag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #7B6FE0;
    margin-bottom: 12px;
    display: block;
}

#aisms-wrap .aw-sub {
    font-size: 16px;
    color: #9895AA;
    line-height: 1.6;
}

/* Gradient text */
#aisms-wrap .aw-grad {
    background: linear-gradient(135deg, #7B6FE0, #1D9E75);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#aisms-wrap .aw-grad-warm {
    background: linear-gradient(135deg, #7B6FE0, #D85A30);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
#aisms-wrap .aw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 60px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: box-shadow 0.2s, opacity 0.2s;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

#aisms-wrap .aw-btn-primary {
    background: linear-gradient(135deg, #534AB7, #1D9E75);
    color: #fff;
}
#aisms-wrap .aw-btn-primary:hover {
    box-shadow: 0 10px 36px rgba(83,74,183,0.35);
    color: #fff;
    opacity: 0.92;
}

#aisms-wrap .aw-btn-ghost {
    background: rgba(255,255,255,0.06);
    color: #E8E6F0;
    border: 1px solid rgba(255,255,255,0.12);
}
#aisms-wrap .aw-btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

#aisms-wrap .aw-btn-purple {
    background: linear-gradient(135deg, #534AB7, #6B5FD6);
    color: #fff;
}
#aisms-wrap .aw-btn-purple:hover {
    box-shadow: 0 6px 20px rgba(83,74,183,0.35);
    color: #fff;
}

#aisms-wrap .aw-btn-sm {
    padding: 9px 20px;
    font-size: 13px;
}

#aisms-wrap .aw-btn-full { width: 100%; }
#aisms-wrap .aw-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
#aisms-wrap .aw-card {
    background: #141027;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

#aisms-wrap .aw-card-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border: none;
}

/* ══════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════ */
#aisms-wrap .aw-field { margin-bottom: 16px; }

#aisms-wrap .aw-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #7B6FE0;
    margin-bottom: 8px;
}

#aisms-wrap .aw-field input,
#aisms-wrap .aw-field select,
#aisms-wrap .aw-field textarea {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #E8E6F0;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 12px 18px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
    -webkit-appearance: none;
}
#aisms-wrap .aw-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237B6FE0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
#aisms-wrap .aw-field option { background: #141027; color: #E8E6F0; }

#aisms-wrap .aw-field input::placeholder,
#aisms-wrap .aw-field textarea::placeholder { color: rgba(255,255,255,0.25); }

#aisms-wrap .aw-field input:focus,
#aisms-wrap .aw-field select:focus,
#aisms-wrap .aw-field textarea:focus {
    border-color: #534AB7;
    box-shadow: 0 0 0 3px rgba(83,74,183,0.2);
}

#aisms-wrap .aw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { #aisms-wrap .aw-form-row { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   STATS BAR (reused from source)
══════════════════════════════════════════════════════════ */
#aisms-wrap .aw-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    max-width: 760px;
    margin: 48px auto 0;
}

#aisms-wrap .aw-stat {
    background: #0C0A1A;
    padding: 24px 16px;
    text-align: center;
}

#aisms-wrap .aw-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1.2;
}

#aisms-wrap .aw-stat-label {
    font-size: 11px;
    color: #9895AA;
    margin-top: 4px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════
   TRUST PILLS
══════════════════════════════════════════════════════════ */
#aisms-wrap .aw-trust {
    padding: 48px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

#aisms-wrap .aw-trust-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

#aisms-wrap .aw-pills {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

#aisms-wrap .aw-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 30px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #9895AA;
}

#aisms-wrap .aw-pill-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   STATUS BADGES
══════════════════════════════════════════════════════════ */
#aisms-wrap .aw-badge {
    font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .04em;
    display: inline-block;
}
#aisms-wrap .aw-badge-basic   { background: rgba(83,74,183,0.18); color: #A5A0E8; }
#aisms-wrap .aw-badge-premium { background: rgba(186,117,23,0.18); color: #FAC775; }
#aisms-wrap .aw-badge-free    { background: rgba(255,255,255,0.07); color: #9895AA; }

#aisms-wrap .aw-status {
    font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    text-transform: capitalize; letter-spacing: .02em;
    display: inline-block;
}
#aisms-wrap .aw-status-draft          { background: rgba(255,255,255,0.07); color: #9895AA; }
#aisms-wrap .aw-status-scheduled      { background: rgba(24,95,165,0.2); color: #85B7EB; }
#aisms-wrap .aw-status-pending_review { background: rgba(186,117,23,0.18); color: #FAC775; }
#aisms-wrap .aw-status-approved       { background: rgba(29,158,117,0.15); color: #5DCAA5; }
#aisms-wrap .aw-status-published      { background: rgba(29,158,117,0.15); color: #5DCAA5; }
#aisms-wrap .aw-status-rejected       { background: rgba(216,90,48,0.15); color: #F09595; }

/* Platform badges */
#aisms-wrap .aw-platform {
    font-size: 10px; font-weight: 800;
    padding: 4px 10px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .05em;
}
#aisms-wrap .aw-platform-instagram { background: rgba(190,24,93,0.15); color: #F4C0D1; }
#aisms-wrap .aw-platform-linkedin  { background: rgba(29,78,216,0.15); color: #B5D4F4; }
#aisms-wrap .aw-platform-twitter   { background: rgba(3,105,161,0.15); color: #85B7EB; }
#aisms-wrap .aw-platform-facebook  { background: rgba(30,64,175,0.15); color: #B5D4F4; }
#aisms-wrap .aw-platform-tiktok    { background: rgba(126,34,206,0.15); color: #D4C0FA; }

/* ══════════════════════════════════════════════════════════
   PAGE: AUDIT FORM
══════════════════════════════════════════════════════════ */
#aisms-wrap .aw-audit-hero {
    text-align: center;
    padding: 80px 24px 60px;
    position: relative;
}

#aisms-wrap .aw-audit-hero::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(83,74,183,0.16) 0%, rgba(29,158,117,0.05) 50%, transparent 70%);
    pointer-events: none;
}

#aisms-wrap .aw-audit-hero .aw-tag { margin: 0 auto 28px; display: inline-flex; }

#aisms-wrap .aw-audit-hero .aw-h1 {
    margin: 0 auto 20px;
    max-width: 760px;
    position: relative;
    z-index: 1;
}

#aisms-wrap .aw-audit-hero .aw-hero-sub {
    font-size: 18px;
    color: #9895AA;
    max-width: 520px;
    margin: 0 auto 48px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

#aisms-wrap .aw-audit-form-wrap {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#aisms-wrap .aw-audit-form-note {
    font-size: 12px;
    color: rgba(255,255,255,0.2);
    text-align: center;
    margin-top: 14px;
}

/* Loading */
#aisms-wrap .aw-loading {
    text-align: center;
    padding: 60px 20px;
}

#aisms-wrap .aw-spinner-ring {
    width: 52px; height: 52px;
    border: 3px solid rgba(83,74,183,0.15);
    border-top-color: #534AB7;
    border-radius: 50%;
    animation: aw-spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

@keyframes aw-spin { to { transform: rotate(360deg); } }

#aisms-wrap .aw-loading h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

#aisms-wrap .aw-loading-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 280px;
    margin: 0 auto;
}

#aisms-wrap .aw-loading-step {
    font-size: 13px;
    color: rgba(255,255,255,0.2);
    transition: color 0.3s;
    font-weight: 500;
}
#aisms-wrap .aw-loading-step.active { color: #7B6FE0; }
#aisms-wrap .aw-loading-step.done   { color: #1D9E75; }

/* Report */
#aisms-wrap .aw-report { max-width: 780px; margin: 0 auto; }

#aisms-wrap .aw-report-header {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    background: #141027;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    #aisms-wrap .aw-report-header { flex-direction: column; align-items: center; text-align: center; }
}

#aisms-wrap .aw-score-ring {
    width: 100px; height: 100px;
    flex-shrink: 0;
    position: relative;
}
#aisms-wrap .aw-score-ring svg { width: 100%; height: 100%; }
#aisms-wrap .aw-score-inner {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
#aisms-wrap .aw-score-num   { font-size: 26px; font-weight: 800; color: #fff; line-height: 1; }
#aisms-wrap .aw-score-grade { font-size: 13px; font-weight: 700; color: #7B6FE0; margin-top: 2px; }

#aisms-wrap .aw-report-intro h2 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
#aisms-wrap .aw-report-summary  { font-size: 14px; color: #9895AA; line-height: 1.65; margin-bottom: 10px; }
#aisms-wrap .aw-report-meta     { font-size: 12px; color: #7B6FE0; font-weight: 600; }

#aisms-wrap .aw-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { #aisms-wrap .aw-report-grid { grid-template-columns: 1fr; } }

#aisms-wrap .aw-report-section-title {
    font-size: 12px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 12px;
}
#aisms-wrap .aw-section-green { color: #1D9E75; }
#aisms-wrap .aw-section-red   { color: #D85A30; }
#aisms-wrap .aw-section-purple{ color: #7B6FE0; }

#aisms-wrap .aw-report-list { list-style: none; padding: 0; margin: 0; }
#aisms-wrap .aw-report-list li {
    font-size: 13px;
    color: #C8C5D8;
    padding: 7px 0 7px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}
#aisms-wrap .aw-report-list li:last-child { border-bottom: none; }
#aisms-wrap .aw-report-list li::before { content: '→'; position: absolute; left: 0; color: #7B6FE0; font-weight: 700; }

#aisms-wrap .aw-quick-win {
    background: rgba(83,74,183,0.08);
    border: 1px solid rgba(83,74,183,0.15);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}
#aisms-wrap .aw-qw-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
#aisms-wrap .aw-qw-title{ font-size: 13px; font-weight: 700; color: #fff; }
#aisms-wrap .aw-qw-desc { font-size: 12px; color: #9895AA; }

#aisms-wrap .aw-impact-badge {
    font-size: 10px; font-weight: 700;
    padding: 3px 8px; border-radius: 6px;
    text-transform: uppercase; letter-spacing: .05em;
}
#aisms-wrap .aw-impact-high   { background: rgba(29,158,117,0.15); color: #5DCAA5; }
#aisms-wrap .aw-impact-medium { background: rgba(186,117,23,0.15); color: #FAC775; }
#aisms-wrap .aw-impact-low    { background: rgba(255,255,255,0.06); color: #9895AA; }
#aisms-wrap .aw-effort-badge  { background: rgba(83,74,183,0.12); color: #A5A0E8; }

#aisms-wrap .aw-competitor-gap {
    background: rgba(29,158,117,0.06);
    border: 1px solid rgba(29,158,117,0.12);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #9895AA;
}

/* Report CTA */
#aisms-wrap .aw-report-cta {
    background: #141027;
    border: 1px solid rgba(83,74,183,0.25);
    border-radius: 16px;
    padding: 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
#aisms-wrap .aw-report-cta::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 500px; height: 300px;
    background: radial-gradient(circle, rgba(83,74,183,0.12) 0%, transparent 70%);
    pointer-events: none;
}
#aisms-wrap .aw-report-cta h3 { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 10px; position: relative; z-index: 1; }
#aisms-wrap .aw-report-cta p  { color: #9895AA; font-size: 15px; margin-bottom: 24px; position: relative; z-index: 1; }
#aisms-wrap .aw-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════
   PAGE: DASHBOARD
══════════════════════════════════════════════════════════ */
#aisms-wrap .aw-dash { padding: 32px 0 80px; }

/* Topbar */
#aisms-wrap .aw-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #141027;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 14px 20px;
    margin-bottom: 20px;
}
#aisms-wrap .aw-topbar-left  { display: flex; align-items: center; gap: 12px; }
#aisms-wrap .aw-topbar-right { display: flex; align-items: center; gap: 12px; }

#aisms-wrap .aw-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #534AB7, #1D9E75);
    color: #fff; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
#aisms-wrap .aw-topbar-name { font-weight: 700; font-size: 15px; color: #fff; }

#aisms-wrap .aw-credit-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(83,74,183,0.15);
    border: 1px solid rgba(83,74,183,0.25);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #A5A0E8;
}
#aisms-wrap .aw-credit-pill strong { color: #fff; font-size: 16px; }

/* Tabs */
#aisms-wrap .aw-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    background: #141027;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 24px;
}
#aisms-wrap .aw-tab {
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 9px;
    color: #9895AA;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}
#aisms-wrap .aw-tab:hover  { background: rgba(255,255,255,0.05); color: #E8E6F0; }
#aisms-wrap .aw-tab.active { background: rgba(83,74,183,0.2); color: #A5A0E8; }

/* Stats grid */
#aisms-wrap .aw-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
@media (max-width: 700px) { #aisms-wrap .aw-stats-grid { grid-template-columns: repeat(2,1fr); } }

#aisms-wrap .aw-stat-card {
    background: #141027;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
}
#aisms-wrap .aw-stat-big   { font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -1px; line-height: 1; }
#aisms-wrap .aw-stat-lbl   { font-size: 11px; color: #9895AA; margin-top: 6px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

/* Upgrade banner */
#aisms-wrap .aw-upgrade {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #141027;
    border: 1px solid rgba(83,74,183,0.2);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    gap: 20px;
    position: relative;
    overflow: hidden;
}
#aisms-wrap .aw-upgrade::before {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(83,74,183,0.1) 0%, transparent 70%);
    pointer-events: none;
}
@media (max-width: 600px) { #aisms-wrap .aw-upgrade { flex-direction: column; } }
#aisms-wrap .aw-upgrade strong { font-size: 16px; color: #fff; font-weight: 700; display: block; margin-bottom: 4px; }
#aisms-wrap .aw-upgrade p      { font-size: 13px; color: #9895AA; margin: 0; }

/* Recent posts */
#aisms-wrap .aw-section-head { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #7B6FE0; margin-bottom: 14px; }

#aisms-wrap .aw-post-row {
    display: grid;
    grid-template-columns: 80px 1fr 110px 90px;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
}
@media (max-width: 700px) { #aisms-wrap .aw-post-row { grid-template-columns: 1fr 1fr; } }
#aisms-wrap .aw-post-preview { color: #9895AA; }
#aisms-wrap .aw-post-date    { font-size: 11px; color: rgba(255,255,255,0.25); }

/* Create tab */
#aisms-wrap .aw-create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { #aisms-wrap .aw-create-grid { grid-template-columns: 1fr; } }

#aisms-wrap .aw-gen-results, #aisms-wrap .aw-hash-results {
    margin-top: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 16px;
}

#aisms-wrap .aw-caption-option {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s;
}
#aisms-wrap .aw-caption-option:hover { border-color: rgba(83,74,183,0.4); }
#aisms-wrap .aw-caption-option p     { font-size: 13px; color: #C8C5D8; margin-bottom: 8px; white-space: pre-wrap; }
#aisms-wrap .aw-caption-use          { font-size: 12px; color: #7B6FE0; font-weight: 700; }

#aisms-wrap .aw-hash-tags  { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#aisms-wrap .aw-hash-tag {
    background: rgba(83,74,183,0.12);
    color: #A5A0E8;
    padding: 4px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
    cursor: pointer;
    transition: background 0.12s;
}
#aisms-wrap .aw-hash-tag:hover { background: rgba(83,74,183,0.25); }

#aisms-wrap .aw-char-count { font-size: 11px; color: rgba(255,255,255,0.2); font-weight: 400; margin-left: 8px; }
#aisms-wrap .aw-composer-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Queue */
#aisms-wrap .aw-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
#aisms-wrap .aw-filter-btn {
    font-size: 12px; padding: 6px 14px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent; color: #9895AA; cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
    transition: all 0.12s;
}
#aisms-wrap .aw-filter-btn.active { background: rgba(83,74,183,0.2); color: #A5A0E8; border-color: rgba(83,74,183,0.3); }

#aisms-wrap .aw-queue-item {
    display: grid;
    grid-template-columns: 80px 1fr 140px;
    gap: 14px;
    align-items: start;
    background: #141027;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    transition: border-color 0.15s;
}
#aisms-wrap .aw-queue-item:hover { border-color: rgba(83,74,183,0.25); }
@media (max-width: 700px) { #aisms-wrap .aw-queue-item { grid-template-columns: 1fr; } }
#aisms-wrap .aw-qi-text { font-size: 13px; color: #C8C5D8; margin-bottom: 6px; line-height: 1.55; }
#aisms-wrap .aw-qi-tags { font-size: 12px; color: #534AB7; }
#aisms-wrap .aw-qi-note { font-size: 12px; color: #FAC775; background: rgba(186,117,23,0.1); border-radius: 6px; padding: 6px 10px; margin-top: 8px; }
#aisms-wrap .aw-qi-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
#aisms-wrap .aw-qi-date { font-size: 11px; color: rgba(255,255,255,0.2); }

/* Messages */
#aisms-wrap .aw-thread {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(83,74,183,0.3) transparent;
}
#aisms-wrap .aw-msg { max-width: 75%; padding: 12px 16px; border-radius: 14px; }
#aisms-wrap .aw-msg-mine   { background: rgba(83,74,183,0.25); border: 1px solid rgba(83,74,183,0.3); margin-left: auto; border-bottom-right-radius: 4px; }
#aisms-wrap .aw-msg-theirs { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); margin-right: auto; border-bottom-left-radius: 4px; }
#aisms-wrap .aw-msg-sender { font-size: 11px; color: #7B6FE0; font-weight: 700; margin-bottom: 4px; }
#aisms-wrap .aw-msg-body   { font-size: 14px; color: #E8E6F0; line-height: 1.5; }
#aisms-wrap .aw-msg-time   { font-size: 11px; color: rgba(255,255,255,0.2); margin-top: 4px; text-align: right; }
#aisms-wrap .aw-msg-input-row {
    display: flex; gap: 10px; align-items: flex-end;
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
#aisms-wrap .aw-msg-input-row textarea { flex: 1; resize: none; }

/* Credits */
#aisms-wrap .aw-credit-hero { text-align: center; padding: 32px 0 28px; }
#aisms-wrap .aw-credit-big  { font-size: 72px; font-weight: 800; color: #fff; letter-spacing: -3px; line-height: 1; }
#aisms-wrap .aw-credit-big span { background: linear-gradient(135deg,#7B6FE0,#1D9E75); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
#aisms-wrap .aw-credit-big-lbl  { font-size: 11px; color: rgba(255,255,255,0.2); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-top: 8px; }

#aisms-wrap .aw-pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
@media (max-width: 500px) { #aisms-wrap .aw-pack-grid { grid-template-columns: 1fr; } }

#aisms-wrap .aw-pack {
    background: #141027;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 24px; text-align: center;
    cursor: pointer; transition: border-color 0.15s, transform 0.15s;
    position: relative; overflow: hidden;
}
#aisms-wrap .aw-pack:hover { border-color: rgba(83,74,183,0.4); transform: translateY(-2px); }
#aisms-wrap .aw-pack-featured { border-color: rgba(83,74,183,0.3); }
#aisms-wrap .aw-pack-badge-label {
    background: linear-gradient(135deg, #534AB7, #6B5FD6);
    color: #fff; font-size: 10px; font-weight: 800;
    padding: 4px 14px; border-radius: 20px; text-transform: uppercase;
    letter-spacing: .08em; display: inline-block; margin-bottom: 14px;
}
#aisms-wrap .aw-pack-credits { font-size: 22px; font-weight: 800; color: #fff; }
#aisms-wrap .aw-pack-price   { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin: 4px 0; background: linear-gradient(135deg,#7B6FE0,#1D9E75); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
#aisms-wrap .aw-pack-value   { font-size: 12px; color: rgba(255,255,255,0.25); margin-bottom: 16px; }

/* Table */
#aisms-wrap .aw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
#aisms-wrap .aw-table th { text-align: left; padding: 10px 12px; color: #7B6FE0; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.07); }
#aisms-wrap .aw-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); color: #C8C5D8; }
#aisms-wrap .aw-table tr:last-child td { border-bottom: none; }
#aisms-wrap .aw-td-pos { color: #1D9E75; font-weight: 700; }
#aisms-wrap .aw-td-neg { color: #D85A30; font-weight: 700; }

/* Empty state */
#aisms-wrap .aw-empty {
    text-align: center; padding: 60px 20px;
    color: rgba(255,255,255,0.15); font-size: 14px;
}
#aisms-wrap .aw-empty-icon  { font-size: 42px; margin-bottom: 12px; opacity: 0.4; }
#aisms-wrap .aw-empty a { color: #7B6FE0; font-weight: 600; }

/* Calendar */
#aisms-wrap .aw-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
#aisms-wrap .aw-cal-hdr  { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.2); text-align: center; padding: 6px 0; text-transform: uppercase; letter-spacing: .05em; }
#aisms-wrap .aw-cal-day  { min-height: 68px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); border-radius: 8px; padding: 6px; }
#aisms-wrap .aw-cal-day.today { border-color: rgba(83,74,183,0.4); background: rgba(83,74,183,0.05); }
#aisms-wrap .aw-cal-day-num   { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.3); margin-bottom: 4px; }
#aisms-wrap .aw-cal-dot { font-size: 10px; padding: 2px 5px; border-radius: 4px; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }

/* Modal */
#aisms-wrap .aw-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(12,10,26,0.85); backdrop-filter: blur(6px);
    z-index: 99999; display: flex; align-items: center; justify-content: center;
}
#aisms-wrap .aw-modal-box {
    background: #141027;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 32px;
    width: 90%; max-width: 480px; position: relative;
}
#aisms-wrap .aw-modal-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none; font-size: 18px;
    cursor: pointer; color: rgba(255,255,255,0.2);
}
#aisms-wrap .aw-modal-close:hover { color: #fff; }
#aisms-wrap .aw-modal-note { font-size: 12px; color: rgba(255,255,255,0.2); text-align: center; margin-top: 12px; }

/* ══════════════════════════════════════════════════════════
   PAGE: SIGN UP
══════════════════════════════════════════════════════════ */
#aisms-wrap .aw-signup-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    position: relative;
}
#aisms-wrap .aw-signup-page::before {
    content: '';
    position: absolute; top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(83,74,183,0.1) 0%, transparent 60%);
    pointer-events: none;
}
#aisms-wrap .aw-signup-box {
    max-width: 520px; width: 100%;
    position: relative; z-index: 1;
}
#aisms-wrap .aw-signup-hero {
    text-align: center; margin-bottom: 36px;
}
#aisms-wrap .aw-signup-hero .aw-tag { margin: 0 auto 20px; display: inline-flex; }
#aisms-wrap .aw-signup-hero h2 { font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -1px; margin-bottom: 8px; }
#aisms-wrap .aw-signup-hero p  { color: #9895AA; font-size: 15px; }

#aisms-wrap .aw-plan-pick {
    background: #141027;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px; padding: 16px; text-align: center;
    margin-bottom: 20px;
}
#aisms-wrap .aw-plan-pick.aw-plan-featured { border-color: rgba(186,117,23,0.35); }
#aisms-wrap .aw-plan-pick-name { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
#aisms-wrap .aw-plan-basic-name   { color: #7B6FE0; }
#aisms-wrap .aw-plan-premium-name { color: #FAC775; }
#aisms-wrap .aw-plan-price { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -1px; }
#aisms-wrap .aw-plan-desc  { font-size: 13px; color: #9895AA; margin-top: 4px; }

#aisms-wrap .aw-register-form {}
#aisms-wrap .aw-register-error {
    background: rgba(216,90,48,0.1);
    border: 1px solid rgba(216,90,48,0.2);
    border-radius: 10px; padding: 12px 16px;
    font-size: 13px; color: #F09595; margin-bottom: 14px;
}
#aisms-wrap .aw-login-link {
    text-align: center; font-size: 13px;
    color: #9895AA; margin-bottom: 20px;
}
#aisms-wrap .aw-login-link a { color: #7B6FE0; font-weight: 700; text-decoration: none; }

/* Spinner inline */
#aisms-wrap .aw-spin-inline {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: #fff; border-radius: 50%;
    animation: aw-spin 0.6s linear infinite;
    vertical-align: middle; margin-right: 6px;
}

/* Error */
#aisms-wrap .aw-error-box {
    background: rgba(216,90,48,0.08);
    border: 1px solid rgba(216,90,48,0.15);
    border-radius: 10px; padding: 14px;
    font-size: 13px; color: #F09595;
}

/* ── Footer ── */
#aisms-wrap .aw-footer {
    text-align: center; padding: 28px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 12px; color: rgba(255,255,255,0.2);
}
#aisms-wrap .aw-footer a { color: #7B6FE0; text-decoration: none; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    #aisms-wrap .aw-audit-hero { padding: 56px 16px 40px; }
    #aisms-wrap .aw-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 480px) {
    #aisms-wrap .aw-stats { grid-template-columns: 1fr; }
    #aisms-wrap .aw-tabs  { gap: 2px; }
    #aisms-wrap .aw-tab   { font-size: 12px; padding: 7px 10px; }
}
