/* ═══════════════════════════════════════
   SUBSCRIBE PAGE
═══════════════════════════════════════ */
.trn-subscribe-wrap {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg);
}

.trn-subscribe-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow);
}

.trn-subscribe-header {
    text-align: center;
    margin-bottom: 32px;
}

.trn-sub-logo {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.trn-sub-logo span { color: var(--accent); }

.trn-subscribe-header h1 {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px;
}

.trn-subscribe-header p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.trn-sub-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.trn-sub-error a { color: var(--accent); }

.trn-sub-form { display: flex; flex-direction: column; gap: 18px; }

.trn-sub-field { display: flex; flex-direction: column; gap: 6px; }

.trn-sub-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.trn-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.trn-input-wrap svg {
    position: absolute;
    left: 13px;
    width: 16px;
    height: 16px;
    color: var(--muted);
    pointer-events: none;
    flex-shrink: 0;
}

.trn-input-wrap input {
    width: 100%;
    padding: 11px 40px 11px 40px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.trn-input-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

.trn-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: var(--muted);
    padding: 0;
    line-height: 1;
}

.trn-sub-btn {
    width: 100%;
    padding: 13px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.15s;
    margin-top: 4px;
}

.trn-sub-btn svg { width: 18px; height: 18px; }
.trn-sub-btn:hover { background: var(--accent-h); transform: translateY(-1px); }

.trn-sub-login {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.trn-sub-login a { color: var(--accent); font-weight: 600; }

/* ═══════════════════════════════════════
   PROFILE DROPDOWN (replaces Subscribe)
═══════════════════════════════════════ */
.trn-profile {
    position: relative;
}

.trn-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    background: transparent;
    cursor: pointer;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s;
}

.trn-profile-btn:hover { border-color: var(--ink); background: var(--border); }

.trn-profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.trn-profile-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    min-width: 200px;
    z-index: 200;
    overflow: hidden;
}

.trn-profile-dropdown.open { display: block; }

.trn-profile-info {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.trn-profile-info .trn-profile-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 2px;
}

.trn-profile-info .trn-profile-email {
    font-size: 12px;
    color: var(--muted);
}

.trn-profile-dropdown a,
.trn-profile-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    font-size: 13px;
    font-family: var(--font-body);
    color: var(--ink);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.trn-profile-dropdown a:hover,
.trn-profile-dropdown button:hover { background: var(--bg); }

.trn-profile-dropdown svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }

.trn-profile-dropdown .trn-logout { color: var(--accent); border-top: 1px solid var(--border); }
.trn-profile-dropdown .trn-logout svg { color: var(--accent); }

@media (max-width: 768px) {
    .trn-subscribe-box { padding: 32px 24px; }
}

/* ── REMEMBER ME ── */
.trn-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink);
    user-select: none;
}

.trn-remember input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

/* ── FORGOT PASSWORD ── */
.trn-forgot {
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.trn-forgot:hover { text-decoration: underline; }

/* ── SUCCESS MESSAGE ── */
.trn-sub-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ── ANIMATED HEADER CANVAS ── */
.site-header {
    position: sticky !important;
    overflow: hidden !important;
    top: 0 !important;
    z-index: 100 !important;
}

#trn-header-canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 0 !important;
    display: block !important;
}

.site-header .header-inner {
    position: relative !important;
    z-index: 1 !important;
}

/* ── PREVENT BLACK BACKGROUND SHOWING ── */
body {
    background-color: #f7f5f0 !important;
}

/* ── DARK MODE FULL PAGE FIX ── */
body.dark-mode {
    background-color: #1a1a1a !important;
}

body.dark-mode .trn-wrapper,
body.dark-mode .site-main,
body.dark-mode .trn-article,
body.dark-mode .trn-article-inner {
    background-color: #1a1a1a !important;
}

body.dark-mode .trn-article {
    border-color: #2a2a2a !important;
}