/* =============================================
   TOP10ADVICE.NET - Unified Page Styles
   ============================================= */

/* --- Toast Notifications --- */
.tta-toast-container{position:fixed;top:85px;right:20px;z-index:10000;display:flex;flex-direction:column;gap:8px;max-width:400px;}
.tta-toast{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-radius:6px;font-size:.9em;font-family:inter,sans-serif;box-shadow:0 4px 16px rgba(0,0,0,.12);transform:translateX(110%);transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .3s ease;opacity:0;}
.tta-toast-show{transform:translateX(0);opacity:1;}
.tta-toast-success{background:#e6f4ea;color:#1b7d3a;border:1px solid #b7dfbf;}
.tta-toast-error{background:#fef5f5;color:#c0392b;border:1px solid #f5c6cb;}
.tta-toast-info{background:#e8f0fe;color:#1a4fa0;border:1px solid #c5d9f7;}
.tta-toast-msg{flex:1;line-height:1.4;}
.tta-toast-close{background:none;border:none;font-size:1.2em;cursor:pointer;color:inherit;opacity:.6;padding:0 0 0 4px;}
.tta-toast-close:hover{opacity:1;}

/* --- Button Spinner --- */
.tta-btn-spinner{display:inline-block;width:18px;height:18px;border:2.5px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:ttaSpin .6s linear infinite;vertical-align:middle;}
.btn-secondary .tta-btn-spinner{border-color:rgba(51,125,239,.25);border-top-color:#337DEF;}
@keyframes ttaSpin{to{transform:rotate(360deg);}}

/* --- Skeleton Loader --- */
.tta-skeleton{padding:1em 0;}
.tta-skeleton-line{height:14px;background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);background-size:200% 100%;animation:ttaShimmer 1.5s infinite;border-radius:4px;margin-bottom:10px;}
.tta-skeleton-w100{width:100%;}
.tta-skeleton-w70{width:70%;}
.tta-skeleton-w50{width:50%;}
@keyframes ttaShimmer{0%{background-position:200% 0;}100%{background-position:-200% 0;}}

/* --- Load Error --- */
.tta-load-error{text-align:center;padding:2em 0;color:#999;font-size:.9em;}
.tta-load-error a{color:#337DEF;}

/* --- Page Header / Hero --- */
.page-header {
    background-color: #f8f9fa;
    padding: 3em 2em 2.5em;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.page-header h1 {
    font-family: alata, sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.3em;
}
.page-header p {
    font-size: 1.05em;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Page Container --- */
.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5em 2em;
}
.page-container-narrow {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5em 2em;
}
.page-container-wide {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2.5em 2em;
}

/* --- Section Titles --- */
.section-title {
    font-family: alata, sans-serif;
    font-size: 1.5em;
    font-weight: 600;
    color: #111;
    margin-bottom: 1em;
}
.section-subtitle {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 1.5em;
    line-height: 1.6;
}

/* --- Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5em;
}
.card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 1.5em;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
                transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover {
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.card-icon {
    margin-bottom: 0.5em;
    color: #337DEF;
}
.card-icon .tta-icon {
    width: 2em;
    height: 2em;
}
.card h3 {
    font-family: alata, sans-serif;
    font-size: 1.15em;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.4em;
}
.card p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}
.card-link {
    display: inline-block;
    margin-top: 0.8em;
    font-size: 0.9em;
    color: #337DEF;
    font-weight: 500;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 1em;
    font-weight: 500;
    letter-spacing: 0.02857em;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
    background-color: #337DEF;
    color: #fff;
    box-shadow: 0px 1px 2px -1px rgba(0,0,0,0.2),
                0px 2px 3px 0px rgba(0,0,0,0.14),
                0px 1px 5px 0px rgba(0,0,0,0.12);
}
.btn-primary:hover {
    background-color: #2861C5;
    box-shadow: 0px 5px 5px -3px rgba(0,0,0,0.2),
                0px 8px 10px 1px rgba(0,0,0,0.14),
                0px 3px 14px 2px rgba(0,0,0,0.12);
}
.btn-primary:active {
    background-color: #1E4D9C;
}
.btn-secondary {
    background-color: #fff;
    color: #337DEF;
    border: 1px solid #337DEF;
}
.btn-secondary:hover {
    background-color: #f0f6ff;
}
.btn-secondary:active {
    background-color: #e0edff;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.2em;
}
.form-group label {
    display: block;
    font-size: 0.9em;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.4em;
}
.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-family: inter, sans-serif;
    font-size: 0.95em;
    color: #222;
    background: #fff;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    outline: none;
}
.form-input:focus {
    border-color: #337DEF;
    box-shadow: 0 0 0 3px rgba(51, 125, 239, 0.15);
}
.form-input::placeholder {
    color: #aaa;
}
textarea.form-input {
    resize: vertical;
    min-height: 120px;
}
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.form-hint {
    font-size: 0.8em;
    color: #888;
    margin-top: 0.3em;
}
.form-error {
    font-size: 0.8em;
    color: #c0392b;
    margin-top: 0.3em;
    display: none;
}
.form-error.visible {
    display: block;
}
.form-input.input-error {
    border-color: #c0392b;
}
.form-input.input-error:focus {
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}
.form-divider {
    display: flex;
    align-items: center;
    gap: 1em;
    margin: 1.5em 0;
    color: #999;
    font-size: 0.85em;
}
.form-divider::before,
.form-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd;
}

/* --- Auth Card --- */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 73px - 233px);
    padding: 2em;
}
.auth-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 2.5em;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.auth-card h1 {
    font-family: alata, sans-serif;
    font-size: 1.6em;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.2em;
    text-align: center;
}
.auth-card .auth-subtitle {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 1.5em;
}
.auth-card .btn {
    width: 100%;
    padding: 14px;
}
.auth-footer {
    text-align: center;
    margin-top: 1.2em;
    font-size: 0.9em;
    color: #666;
}
.auth-footer a {
    color: #337DEF;
    text-decoration: none;
    font-weight: 500;
}
.auth-footer a:hover {
    text-decoration: underline;
}

/* --- FAQ Accordion --- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #eee;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.2em 0;
    font-family: inter, sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
}
.faq-question:hover {
    color: #337DEF;
}
.faq-question::after {
    content: "+";
    font-size: 1.3em;
    font-weight: 400;
    color: #999;
    transition: transform 200ms ease;
    flex-shrink: 0;
}
.faq-item.active .faq-question::after {
    content: "\2212";
    color: #337DEF;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease, padding 300ms ease;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.2em;
}
.faq-answer p {
    font-size: 0.95em;
    color: #555;
    line-height: 1.7;
}

/* --- Info / Content Blocks --- */
.content-block {
    margin-bottom: 2em;
}
.content-block h2 {
    font-family: alata, sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.6em;
}
.content-block h3 {
    font-family: alata, sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.4em;
    margin-top: 1em;
}
.content-block p {
    font-size: 0.95em;
    color: #444;
    line-height: 1.7;
    margin-bottom: 0.8em;
}
.content-block ul, .content-block ol {
    padding-left: 1.5em;
    margin-bottom: 0.8em;
}
.content-block li {
    font-size: 0.95em;
    color: #444;
    line-height: 1.7;
    margin-bottom: 0.3em;
}
.content-block a {
    color: #337DEF;
    text-decoration: none;
}
.content-block a:hover {
    text-decoration: underline;
}

/* --- Search --- */
.search-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 2em 0;
}
.search-bar {
    position: relative;
    margin-bottom: 2em;
}
.search-bar input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inter, sans-serif;
    font-size: 1.05em;
    color: #222;
    background: #fff;
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.search-bar input:focus {
    border-color: #337DEF;
    box-shadow: 0 0 0 4px rgba(51, 125, 239, 0.1);
}
.search-bar .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
    color: #999;
    pointer-events: none;
}
.search-results {
    list-style: none;
}
.search-result-item {
    padding: 1em 0;
    border-bottom: 1px solid #f0f0f0;
}
.search-result-item a {
    text-decoration: none;
    color: inherit;
}
.search-result-item h3 {
    font-family: alata, sans-serif;
    font-size: 1.05em;
    color: #111;
    margin-bottom: 0.2em;
}
.search-result-item p {
    font-size: 0.85em;
    color: #666;
}
.search-result-item:hover h3 {
    color: #337DEF;
}
.search-result-item mark {
    background: transparent;
    color: #111;
    font-weight: 700;
    padding: 0;
}
.search-empty {
    text-align: center;
    padding: 3em 0;
    color: #999;
}

/* --- Hero Section (Homepage) --- */
.hero {
    background: linear-gradient(135deg, #337DEF 0%, #2B6BD6 100%);
    padding: 5em 2em 4em;
    text-align: center;
    color: #fff;
}
.hero h1 {
    font-family: alata, sans-serif;
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 0.4em;
    line-height: 1.2;
}
.hero p {
    font-size: 1.15em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 1.5em;
    line-height: 1.6;
}
.hero .btn-primary {
    background-color: #fff;
    color: #337DEF;
    font-weight: 600;
    padding: 14px 32px;
    font-size: 1.05em;
}
.hero .btn-primary:hover {
    background-color: #f0f6ff;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.15);
}
.hero .btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    margin-left: 0.8em;
}
.hero .btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* --- Home Sections --- */
.home-section {
    padding: 3em 2em;
}
.home-section:nth-child(even) {
    background-color: #f8f9fa;
}
.home-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.home-section .section-title {
    text-align: center;
    margin-bottom: 0.4em;
}
.home-section .section-subtitle {
    text-align: center;
    margin-bottom: 2em;
}

/* --- Category Cards --- */
.category-card {
    text-align: center;
    padding: 2em 1.5em;
}
.category-card .card-icon {
    margin-bottom: 0.6em;
    color: #337DEF;
}
.category-card .card-icon .tta-icon {
    width: 2.2em;
    height: 2.2em;
}

/* --- Feature Row --- */
.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
    margin-top: 1.5em;
}
.feature-item {
    text-align: center;
    padding: 1.5em;
}
.feature-item .feature-icon {
    margin-bottom: 0.5em;
    color: #337DEF;
}
.feature-item .feature-icon .tta-icon {
    width: 2em;
    height: 2em;
}
.feature-item h3 {
    font-family: alata, sans-serif;
    font-size: 1.1em;
    margin-bottom: 0.3em;
    color: #111;
}
.feature-item p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}

/* --- Ads / Premium Box --- */
.premium-box {
    background: linear-gradient(135deg, #337DEF 0%, #2B6BD6 100%);
    border-radius: 8px;
    padding: 2.5em;
    color: #fff;
    text-align: center;
    margin: 2em 0;
}
.premium-box h2 {
    font-family: alata, sans-serif;
    font-size: 1.6em;
    margin-bottom: 0.4em;
}
.premium-box p {
    font-size: 1em;
    opacity: 0.9;
    margin-bottom: 1em;
    line-height: 1.6;
}
.premium-price {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 0.3em;
}
.premium-price small {
    font-size: 0.4em;
    font-weight: 400;
    opacity: 0.8;
}
.premium-box .btn {
    background: #fff;
    color: #337DEF;
    font-weight: 600;
    padding: 14px 32px;
}
.premium-box .btn:hover {
    background: #f0f6ff;
}
.premium-features {
    list-style: none;
    margin: 1em 0 1.5em;
    padding: 0;
}
.premium-features li {
    padding: 0.3em 0;
    font-size: 0.95em;
    opacity: 0.9;
}
.premium-features li::before {
    content: "\2713  ";
    font-weight: 700;
}

/* --- Notice / Alert --- */
.notice {
    padding: 1em 1.2em;
    border-radius: 6px;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 1.5em;
}
.notice-info {
    background-color: #e8f0fe;
    color: #1a4fa0;
    border: 1px solid #c5d9f7;
}
.notice-warn {
    background-color: #fff8e6;
    color: #7a5d00;
    border: 1px solid #f0e0a0;
}

/* --- Support Ticket Status --- */
.ticket-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ticket-open {
    background: #e6f4ea;
    color: #1b7d3a;
}
.ticket-closed {
    background: #f0f0f0;
    color: #666;
}

/* --- Breadcrumb --- */
.breadcrumb {
    padding: 1em 2em;
    font-size: 0.85em;
    color: #888;
    max-width: 1100px;
    margin: 0 auto;
}
.breadcrumb a {
    color: #337DEF;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    margin: 0 0.4em;
}

/* --- Tag --- */
.tag {
    display: inline-block;
    background: #f0f6ff;
    color: #337DEF;
    font-size: 0.8em;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 0.3em;
    margin-bottom: 0.3em;
}

/* --- Article List (Category Page) --- */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}
.article-list-item {
    display: flex;
    gap: 1.5em;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 200ms ease, transform 200ms ease;
}
.article-list-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}
.article-list-image {
    flex-shrink: 0;
    width: 240px;
    background: #f0f0f0;
}
.article-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 160px;
}
.article-list-content {
    padding: 1.2em 1.5em 1.2em 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.article-list-content h3 {
    font-family: alata, sans-serif;
    font-size: 1.15em;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.4em;
}
.article-list-item:hover .article-list-content h3 {
    color: #337DEF;
}
.article-list-content p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.6em;
}
.article-list-meta {
    font-size: 0.8em;
    color: #999;
}

/* --- Account Layout --- */
.account-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2em;
    align-items: flex-start;
}
.account-sidebar {
    position: sticky;
    top: 90px;
}
.account-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.account-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}
.account-nav-link:hover {
    background-color: #f0f6ff;
    color: #337DEF;
}
.account-nav-link.active {
    background-color: #e8f0fe;
    color: #337DEF;
    font-weight: 600;
}
.account-nav-logout {
    margin-top: 0.5em;
    color: #999;
}
.account-nav-logout:hover {
    background-color: #fef0f0;
    color: #c0392b;
}

/* --- Account Cards --- */
.account-main {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}
.account-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}
.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 1.5em;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fafafa;
}
.account-card-header h2 {
    font-family: alata, sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: #111;
    margin: 0;
}
.account-card-body {
    padding: 1.5em;
}
.account-card-danger {
    border-color: #f5c6cb;
}
.account-card-danger .account-card-header {
    background-color: #fef5f5;
    border-bottom-color: #f5c6cb;
}

/* --- Account Profile --- */
.account-profile {
    display: flex;
    align-items: center;
    gap: 1.2em;
}
.account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #337DEF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.account-avatar-initials {
    color: #fff;
    font-family: alata, sans-serif;
    font-size: 1.3em;
    font-weight: 600;
}
.account-profile-info h3 {
    font-family: alata, sans-serif;
    font-size: 1.15em;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.1em;
}
.account-profile-info p {
    font-size: 0.9em;
    color: #555;
    margin: 0;
}
.account-member-since {
    font-size: 0.8em !important;
    color: #999 !important;
    margin-top: 0.2em;
}

/* --- Ad-Free Status --- */
.adfree-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.8em;
}
.adfree-badge-active {
    background: #e6f4ea;
    color: #1b7d3a;
}
.adfree-badge-inactive {
    background: #f0f0f0;
    color: #666;
}
.adfree-inactive p, .adfree-active p {
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1em;
}
.adfree-upgrade-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5em;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.5em;
}
.adfree-price {
    font-size: 1.8em;
    font-weight: 700;
    color: #337DEF;
}
.adfree-price-label {
    font-size: 0.8em;
    color: #999;
    margin-left: 0.3em;
}

/* --- Saved Articles --- */
.saved-empty {
    text-align: center;
    padding: 2em 0;
    color: #999;
}
.saved-empty p {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 0;
}
.saved-article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8em 0;
    border-bottom: 1px solid #f5f5f5;
}
.saved-article-item:last-child {
    border-bottom: none;
}
.saved-article-info h4 {
    font-family: alata, sans-serif;
    font-size: 0.95em;
    font-weight: 500;
    margin-bottom: 0.1em;
}
.saved-article-info h4 a {
    color: #111;
    text-decoration: none;
}
.saved-article-info h4 a:hover {
    color: #337DEF;
}
.saved-article-info p {
    font-size: 0.8em;
    color: #999;
    margin: 0;
}
.saved-article-remove {
    background: none;
    border: none;
    font-size: 1.3em;
    color: #ccc;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 150ms ease, background 150ms ease;
}
.saved-article-remove:hover {
    color: #c0392b;
    background: #fef0f0;
}

/* --- Activity List --- */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8em;
    padding: 0.7em 0;
    border-bottom: 1px solid #f2f2f2;
}
.activity-item:last-child {
    border-bottom: none;
}
.activity-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eef2f7;
    color: #8a9bb5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.activity-dot .tta-icon {
    width: 14px;
    height: 14px;
}
.activity-content p {
    font-size: 0.9em;
    color: #333;
    margin: 0;
    font-weight: 500;
}
.activity-content small {
    font-size: 0.78em;
    color: #999;
}

/* --- Danger Zone --- */
.danger-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5em;
}
.btn-danger {
    display: inline-block;
    border: 1px solid #c0392b;
    border-radius: 4px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 0.9em;
    font-weight: 500;
    color: #c0392b;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: background 150ms ease, color 150ms ease;
}
.btn-danger:hover {
    background: #c0392b;
    color: #fff;
}

/* --- Checkout Layout --- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
    max-width: 960px;
    margin: 0 auto;
    padding: 2em 0;
    align-items: flex-start;
}
.checkout-heading {
    font-family: alata, sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    color: #111;
    margin-bottom: 1.2em;
}

/* Checkout Summary */
.checkout-summary {
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 2em;
}
.checkout-product {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 1.5em;
    padding-bottom: 1.2em;
    border-bottom: 1px solid #e0e0e0;
}
.checkout-product-icon {
    background: #eef4ff;
    color: #337DEF;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.checkout-product-icon .tta-icon {
    width: 1.6em;
    height: 1.6em;
}
.checkout-product-info h3 {
    font-family: alata, sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.1em;
}
.checkout-product-info p {
    font-size: 0.85em;
    color: #666;
    margin: 0;
}
.checkout-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em;
}
.checkout-features li {
    padding: 0.4em 0;
    font-size: 0.9em;
    color: #444;
}
.checkout-features li::before {
    content: "\2713  ";
    color: #337DEF;
    font-weight: 700;
}
.checkout-total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4em 0;
    font-size: 0.9em;
    color: #555;
}
.checkout-total-final {
    border-top: 2px solid #ddd;
    margin-top: 0.5em;
    padding-top: 0.8em;
    font-size: 1.15em;
    font-weight: 700;
    color: #111;
}
.checkout-vat-note {
    font-size: 0.78em;
    color: #999;
    margin-top: 0.5em;
}

/* Checkout Payment */
.checkout-payment {
    padding: 0.5em 0;
}
.stripe-card-element {
    padding: 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.stripe-card-element:focus-within,
.stripe-card-element.StripeElement--focus {
    border-color: #337DEF;
    box-shadow: 0 0 0 3px rgba(51, 125, 239, 0.15);
}
.stripe-card-errors {
    color: #c0392b;
    font-size: 0.85em;
    margin-top: 0.4em;
    min-height: 1.2em;
}
.checkout-pay-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.05em;
    font-weight: 600;
    margin-top: 0.5em;
}
.checkout-pay-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.checkout-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.checkout-secure-note {
    text-align: center;
    font-size: 0.8em;
    color: #999;
    margin-top: 1em;
}

/* --- Modal --- */
.tta-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5em;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.tta-modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}
.tta-modal {
    background: #fff;
    border-radius: 12px;
    padding: 1.8em 2em;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(12px);
    transition: transform 0.2s ease;
}
.tta-modal-overlay.visible .tta-modal {
    transform: translateY(0);
}
.tta-modal h3 {
    font-family: alata, sans-serif;
    font-size: 1.15em;
    font-weight: 600;
    color: #111;
    margin-bottom: 0.4em;
}
.tta-modal p {
    font-size: 0.88em;
    color: #555;
    margin-bottom: 1em;
    line-height: 1.55;
}
.tta-modal .form-group {
    margin-bottom: 1em;
}
.tta-modal .form-group label {
    font-size: 0.85em;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.35em;
    display: block;
}
.tta-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6em;
}
.tta-modal-header h3 {
    margin: 0;
}
.tta-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 1.4em;
    line-height: 1;
    padding: 0.1em 0.3em;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.tta-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}
.tta-modal-actions {
    display: flex;
    gap: 0.6em;
    justify-content: flex-end;
    margin-top: 0.5em;
}
.tta-modal-actions .btn {
    padding: 0.6em 1.4em;
    font-size: 0.88em;
}

/* --- Password show/hide toggle --- */
.password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}
.password-wrapper > .form-input {
    width: 100%;
    padding-right: 42px;
}
.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
    z-index: 2;
}
.password-toggle:hover {
    color: #337DEF;
    background: #f0f4fa;
}
.password-toggle:focus-visible {
    outline: 2px solid #337DEF;
    outline-offset: 1px;
}
.password-toggle .tta-icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* --- Tooltip (data-tooltip attribute) --- */
[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 9500;
    left: 50%;
}
[data-tooltip]::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 6px);
    transform: translateX(-50%) translateY(4px);
    background: #1a1a2e;
    color: #fff;
    font-family: inter, sans-serif;
    font-size: 0.72em;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    padding: 0.45em 0.7em;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
[data-tooltip]::after {
    content: '';
    bottom: 100%;
    width: 0;
    height: 0;
    margin-left: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1a1a2e;
    transform: translateY(4px);
    left: 50%;
}
[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}
[data-tooltip-position="bottom"]::before {
    bottom: auto;
    top: calc(100% + 6px);
}
[data-tooltip-position="bottom"]::after {
    bottom: auto;
    top: 100%;
    border-top: none;
    border-bottom: 6px solid #1a1a2e;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
    }
    .feature-row {
        grid-template-columns: 1fr;
        gap: 1em;
    }
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    .page-header h1 {
        font-size: 1.7em;
    }
    .account-layout {
        grid-template-columns: 1fr;
    }
    .account-sidebar {
        position: static;
    }
    .account-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 2em;
    }
    .danger-action {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 3em 1.5em 2.5em;
    }
    .hero h1 {
        font-size: 1.6em;
    }
    .hero div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.6em;
    }
    .hero .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        padding: 14px 20px;
        font-size: 1em;
    }
    .hero .btn-secondary {
        margin-left: 0;
    }
    .page-container, .page-container-narrow, .page-container-wide {
        padding: 1.5em 1.2em;
    }
    .page-header {
        padding: 2em 1.2em 1.5em;
    }
    .page-header h1 {
        font-size: 1.4em;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .auth-card {
        padding: 1.5em;
    }
    .auth-card h1 {
        font-size: 1.3em;
    }
    .article-list-item {
        flex-direction: column;
    }
    .article-list-image {
        width: 100%;
        height: 180px;
    }
    .article-list-content {
        padding: 1em 1.2em;
    }
}
