/* WriteXO Subscription System Styles - Modern Layout */

/* Page Heading */
.page-heading {
    max-width: 1300px;
    margin: 0 auto 10px auto;
    padding: 0 20px 20px 10px;
}

.page-heading h1 {
    font-size: 32px;
    font-weight: 600;
    color: #696969;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-heading h1 i {
    color: #50ca59;
    font-size: 36px;
}

.page-heading p {
    font-size: 16px;
    color: #696969;
    margin: 0;
    line-height: 1.5;
}

/* Enhanced Dashboard Container */
.dashboard-container {
    background: #eeeeee;
    min-height: 100vh;
    font-family: 'Open Sans', sans-serif;
}

.dashboard-header {
    background: #eeeeee;
    border-bottom: none;
    box-shadow: none;
    position: static;
    z-index: auto;
}

.dashboard-nav {
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap; /* keep logo + toggle on one line */
    gap: 10px;
    height: auto;
    min-height: 50px;
    position: relative; /* anchor mobile dropdown */
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    color: #50ca59;
    border-radius: 10px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    margin: 0 0 0 auto; /* push to right in flex, zero top/bottom */
    align-self: center; /* vertically align with logo */
}

.nav-toggle i { font-size: 22px; line-height: 1; }
.nav-toggle:focus { outline: none; box-shadow: 0 0 0 3px rgba(80,202,89,0.18); }
.nav-toggle.is-open { background: #f3fff3; border-color: #cfe9d3; color: #3da449; }

.dashboard-nav .logo {
    font-size: 22px;
    font-weight: normal;
    color: #696969;
    text-decoration: none;
    display: inline-flex; /* align text to toggle */
    align-items: center;  /* vertical centering */
    height: 40px;         /* match toggle height */
    line-height: 1;       /* remove baseline offset */
    padding: 0; margin: 0;
    flex-shrink: 0;       /* prevent wrapping */
}

.dashboard-nav .logo b {
    color: #696969;
    font-weight: bold;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: #696969;
    text-decoration: none;
    font-weight: normal;
    font-size: 15px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a i {
    font-size: 16px;
    opacity: 0.8;
}

.nav-links a:hover {
    color: #50ca59;
    background: none;
}

.nav-links a:hover i {
    opacity: 1;
}

/* Mobile Nav */
@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  /* Guarantee logo + toggle stay on same row */
  .dashboard-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    justify-content: initial;
  }
  .nav-toggle { margin-left: 0; justify-self: end; }
  /* Tighten sizes so logo and toggle align visually */
  .nav-toggle { width: 36px; height: 36px; border-radius: 8px; }
  .nav-toggle i { font-size: 18px; }
  .dashboard-nav .logo { height: 36px; font-size: 20px; }
  .nav-links {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
  }
  .nav-links a {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0f0f0;
    color: #696969;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links.is-open { display: flex; }
}


/* Dashboard Content Area */
.dashboard-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

/* Enhanced Dashboard Sections */
.dashboard-section {
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.dashboard-section:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: #ccc;
}

.dashboard-section-header {
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    padding: 16px 20px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.dashboard-section-header i {
    color: #50ca59;
    margin-right: 8px;
    font-size: 18px;
}

.dashboard-section-content {
    padding: 20px;
}

/* Subscription Status Section */
.subscription-status {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.current-plan {
    background: #2196F3;
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
    position: relative;
    overflow: hidden;
}

.current-plan h3 {
    margin: 0 0 12px 0;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.plan-price {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin: 0 0 8px 0;
    opacity: 0.95;
}

.next-billing {
    color: white;
    font-size: 14px;
    margin: 0;
    opacity: 0.85;
}

.usage-stats {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #eee;
}

.usage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}


.usage-label {
    color: #666;
    font-weight: 500;
    font-size: 15px;
}

.usage-value {
    font-weight: 700;
    color: #333;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscription-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.subscription-actions .btn {
    display: inline-flex;
    margin-right: 0;
}

.subscription-actions .btn {
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.3;
    height: auto;
    min-height: unset;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #50ca59;
    color: white;
    box-shadow: none;
}

.btn-primary:hover:not(:disabled) {
    background: #3da449;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.btn-secondary:hover:not(:disabled) {
    background: #eee;
    border-color: #ccc;
    color: #333;
    transform: none;
}

.btn-danger {
    background: #f44336;
    color: white;
    box-shadow: none;
}

.btn-danger:hover:not(:disabled) {
    background: #d32f2f;
    box-shadow: none;
    transform: none;
}

.btn-current {
    background: #4CAF50;
    color: white;
    cursor: default;
    box-shadow: none;
}

/* Make Current Plan button match upgrade button sizing */
.plan-card .btn-current {
  padding: 12px 22px;
  font-size: 15px;
  min-height: 44px;
}
@media (max-width: 780px) {
  .plan-card .btn-current { width: 100%; }
}

/* Non-interactive badge for current plan (replaces disabled button) */
.current-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #3da449;
  background: #f6fff7;
  border: 1px solid #cfe9d3;
  cursor: default;
}
.current-badge i { font-size: 16px; }
@media (max-width: 780px) {
  .plan-card .current-badge { width: 100%; }
}

/* Subscription Cards */
.subscription-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Available Plans - Feature List */
.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #333;
}

.plan-features li {
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.plan-features li i {
    color: #50ca59;
    margin-right: 8px;
}

/* Grey out unavailable features in Free plan */
.plan-features li i.ion-close.premium-missing {
    color: #999;
}

.subscription-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: #ccc;
    transform: translateY(-2px);
}

.active-subscription {
    border-color: #50ca59;
    background: linear-gradient(135deg, white 0%, #f8fff8 100%);
    box-shadow: 0 4px 16px rgba(80, 202, 89, 0.15);
}

/* Compact variant for Current Subscription section */
.subscription-card.compact { padding: 16px; margin-bottom: 16px; }
.subscription-card.compact h3 { font-size: 18px; margin-bottom: 6px; }
.subscription-card.compact .price { font-size: 16px; }
.subscription-card.compact .subscription-details p { margin: 2px 0; font-size: 13px; }
.subscription-card.compact .subscription-features { margin-top: 8px; }
.subscription-card .link-toggle {
  background: none;
  border: none;
  color: #3da449;
  font-size: 13px;
  padding: 0 4px;
  cursor: pointer;
}

.active-subscription::before {
    content: 'ACTIVE';
    position: absolute;
    top: 16px;
    right: 16px;
    background: #50ca59;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.free-plan {
    border-color: #4CAF50;
    background: linear-gradient(135deg, white 0%, #f8fff8 100%);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.15);
}

.free-plan::before {
    content: 'FREE';
    position: absolute;
    top: 16px;
    right: 16px;
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.subscription-details {
    margin-bottom: 24px;
}

.subscription-details .price {
    font-size: 24px;
    font-weight: 700;
    color: #50ca59;
    margin-bottom: 8px;
}

.subscription-details .status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.subscription-features h4 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.subscription-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subscription-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.subscription-features li i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.subscription-features li i.ion-checkmark {
    background: #e8f5e8;
    color: #4CAF50;
}

.subscription-features li i.ion-close.premium-missing {
    background: #f5f5f5;
    color: #999;
}

.status-active {
    color: #4CAF50;
    font-weight: bold;
}

.status-inactive {
    color: #ff9800;
    font-weight: bold;
}

.status-cancelled {
    color: #f44336;
    font-weight: bold;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.plan-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.plan-card:not(.current-plan) {
    cursor: pointer;
}

/* Corner badge for highlighted plan */
.plan-corner-badge {
    position: absolute;
    top: 12px;
    right: 10px;
    background: #fff;
    border: 1px solid #cfe9d3;
    color: #3da449;
    padding: 6px 10px;
    line-height: 1;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.plan-corner-badge i { font-size: 14px; }

/* Avoid overlapping the CURRENT PLAN ribbon */
.plan-card.current-plan .plan-corner-badge {
    top: 44px;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: #50ca59;
}

.plan-card.current-plan {
    border-color: #50ca59;
    background: linear-gradient(135deg, white 0%, #f8fff8 100%);
    box-shadow: 0 4px 16px rgba(80, 202, 89, 0.15);
    cursor: default;
}

.plan-card.current-plan:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(80, 202, 89, 0.15);
    border-color: #50ca59;
}

.plan-card.current-plan::before {
    content: 'CURRENT PLAN';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #50ca59;
    color: white;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.plan-header {
    padding-top: 24px;
    margin-bottom: 24px;
}

.plan-header h3 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.plan-price {
    margin-bottom: 8px;
}

.plan-price .price {
    font-size: 36px;
    font-weight: 800;
    color: #50ca59;
    line-height: 1;
}

/* Plan badges */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}
.plan-badge i { font-size: 14px; }
.plan-badge.most-popular {
    background: rgba(80, 202, 89, 0.12);
    color: #3da449;
    border: 1px solid #cfe9d3;
}

.plan-badge-row {
    margin-top: 6px;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
}
.plan-badge-row.top {
    margin-top: 0;
    margin-bottom: 8px;
}

.plan-price .period {
    color: #666;
    font-size: 16px;
    margin-left: 4px;
}

.plan-features {
    margin: 20px 0;
    text-align: left;
}

.plan-features ul {
    list-style: none;
    padding: 0;
}

.plan-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.plan-features li i {
    margin-right: 10px;
    color: #50ca59;
    width: 16px;
}

.additional-features {
    margin-top: 15px;
}

.feature-tag {
    display: inline-block;
    background: #e3f2fd;
    color: #1976D2;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 12px;
    font-size: 12px;
}

.plan-action {
    margin-top: 20px;
}

/* Usage Overview - Enhanced Design */
.usage-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.usage-item {
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e3f2fd;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.usage-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.12);
    border-color: #2196F3;
}

.usage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50 0%, #2196F3 50%, #ff9800 100%);
}

.usage-icon {
    margin-right: 20px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.2);
}

.usage-icon i {
    font-size: 24px;
    color: white;
}

.usage-details {
    flex: 1;
    min-width: 0;
}

.usage-details h4 {
    margin: 0 0 8px 0;
    color: #1a237e;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.usage-details p {
    margin: 0 0 12px 0;
    color: #546e7a;
    font-size: 15px;
    font-weight: 500;
}

.usage-bar {
    width: 100%;
    height: 8px;
    background: #eceff1;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #2196F3 50%, #ff9800 100%);
    border-radius: 6px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.usage-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Analytics Overview */
.analytics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.metric-icon i {
    font-size: 32px;
    color: #50ca59;
    margin-bottom: 10px;
}

.metric-details h3 {
    margin: 0;
    font-size: 28px;
    color: #333;
}

.metric-details p {
    margin: 5px 0;
    color: #666;
}

.metric-limit {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Usage Chart */
.usage-chart {
    margin: 20px 0;
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Usage Table */
.usage-table {
    overflow-x: auto;
    margin-top: 20px;
}

.usage-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

/* Upgrade Hero & Trust (Subscription page) */
.upgrade-hero { margin-bottom: 12px; }
.upgrade-hero .lead { margin: 0 0 8px 0; color: #333; font-weight: 600; }
.upgrade-hero .muted { color: #777; font-size: 13px; margin-top: 8px; }

.benefit-bullets { margin: 8px 0; padding-left: 18px; }
.benefit-bullets li { margin-bottom: 6px; color: #333; }

.plan-cta-note { margin-top: 6px; font-size: 12px; color: #666; }

.plans-trust { margin-top: 16px; color: #666; font-size: 13px; }
.plans-trust .trust-line { margin-bottom: 8px; }
.plan-testimonials blockquote {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid #eee;
  color: #666;
  font-style: italic;
  font-size: 13px;
}

/* Emphasize upgrade buttons for Premium/Pro plans */
.plan-card.plan-premium .btn-upgrade,
.plan-card.plan-pro .btn-upgrade {
  padding: 12px 22px;
  font-size: 15px;
  min-height: 44px;
}

/* Slightly larger on small screens for tap targets */
@media (max-width: 780px) {
  .plan-card.plan-premium .btn-upgrade,
  .plan-card.plan-pro .btn-upgrade {
    width: 100%;
  }
}

/* Explore Plans button: match upgrade look/feel */
.btn-explore {
  padding: 12px 22px;
  font-size: 15px;
  min-height: 44px;
}
@media (max-width: 780px) {
  .btn-explore { width: 100%; }
}

.usage-table th,
.usage-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.usage-table th {
    background: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.usage-table tr:hover {
    background: #f9f9f9;
}

/* Features Grid - Enhanced Design */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e3f2fd;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(80, 202, 89, 0.12);
    border-color: #50ca59;
}

.feature-item.premium-feature {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #ff9800;
}

.feature-item.unavailable-feature {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-color: #e0e0e0;
    opacity: 0.7;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50 0%, #3da449 100%);
}

.feature-item.premium-feature::before {
    background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
}

.feature-item.unavailable-feature::before {
    background: linear-gradient(90deg, #bdbdbd 0%, #9e9e9e 100%);
}

.feature-icon {
    margin-right: 20px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #50ca59 0%, #3da449 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.2);
}

.feature-item.premium-feature .feature-icon {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.2);
}

.feature-item.unavailable-feature .feature-icon {
    background: linear-gradient(135deg, #bdbdbd 0%, #9e9e9e 100%);
    box-shadow: 0 4px 16px rgba(189, 189, 189, 0.2);
}

.feature-icon i {
    font-size: 20px;
    color: white;
}

.feature-info {
    flex: 1;
    min-width: 0;
}

.feature-info h4 {
    margin: 0 0 8px 0;
    color: #1a237e;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.feature-item.premium-feature .feature-info h4 {
    color: #e65100;
}

.feature-item.unavailable-feature .feature-info h4 {
    color: #757575;
}

.feature-info p {
    margin: 0;
    color: #546e7a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.feature-item.premium-feature .feature-info p {
    color: #bf360c;
}

.feature-item.unavailable-feature .feature-info p {
    color: #9e9e9e;
}

.feature-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.feature-item.premium-feature .feature-badge {
    background: #ff9800;
}

.feature-item.unavailable-feature .feature-badge {
    background: #9e9e9e;
}

.plan-details h3 {
    margin: 0 0 24px 0;
    color: #1a237e;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f3fff3 0%, #e8f5e8 100%);
    border-radius: 16px;
    border: 2px solid #50ca59;
}

/* Upgrade Prompt */
.upgrade-prompt {
    margin-top: 30px;
}

.upgrade-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.upgrade-card h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.upgrade-card p {
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.upgrade-card .btn-primary {
    background: white;
    color: #667eea;
}

.upgrade-card .btn-primary:hover {
    background: #f0f0f0;
}

/* Header Actions */
.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions .btn {
    font-size: 12px;
    padding: 6px 12px;
}

/* Free User Styling */
.unlimited-text {
    color: #4CAF50;
    font-weight: bold;
}

.premium-only {
    color: #ff9800;
    font-style: italic;
    font-size: 12px;
}

.premium-missing {
    color: #ff9800 !important;
}

.subscription-features li i.premium-missing {
    color: #ff9800;
    margin-right: 10px;
}

/* Free account highlight */
.free-plan {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #f3fff3 0%, #e8f5e8 100%);
}

.free-plan .plan-price {
    color: #4CAF50;
}

/* Upgrade prompts */
.upgrade-prompt-inline {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    margin: 10px 0;
    text-align: center;
    font-size: 12px;
}

.upgrade-prompt-inline a {
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

.upgrade-prompt-inline a:hover {
    background: rgba(255,255,255,0.1);
    padding: 2px 4px;
    border-radius: 3px;
    text-decoration: none;
}

/* Note Grid and Cards */
.note-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.note-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.note-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #2196F3;
    transform: translateY(-2px);
}

.note-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.note-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #696969;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.note-card-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 12px;
}

.note-card-actions {
    display: flex;
    gap: 12px;
}

.note-url {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.note-badge {
    flex-shrink: 0;
    color: #999;
    font-size: 16px;
}

.note-title {
    font-weight: 600;
    color: #2196F3;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 12px;
    display: block;
    line-height: 1.4;
}

.note-title:hover {
    color: #1976D2;
}

.note-stats {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.note-stats i {
    color: #999;
    margin-right: 4px;
}

.note-actions {
    display: flex;
    gap: 8px;
}

.note-actions a {
    color: #50ca59;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #f3fff3;
}

.note-actions a:hover {
    background: #e8f5e8;
    color: #3da449;
}

/* Premium Feature Styling */
.unlimited-text {
    color: #4CAF50;
    font-weight: 700;
    font-size: 14px;
}

.premium-only {
    background: #fff3e0;
    color: #f57c00;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #ffcc02;
    opacity: 0.8;
}

.premium-missing {
    color: #ff9800 !important;
}

.subscription-features li i.premium-missing {
    background: #fff3e0 !important;
    color: #f57c00 !important;
}

/* Footer Styling */
.sub-footer {
    background: white;
    border-top: 1px solid #ddd;
    padding: 32px 24px;
    margin: 48px auto 0;
    text-align: center;
}

.sub-footer a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sub-footer a:hover {
    color: #2196F3;
}

.sub-footer small {
    color: #999;
    font-size: 13px;
}

/* Clear utility */
.clear {
    clear: both;
}

/* Account Settings Styles */
.account-settings-container {
    display: grid;
    gap: 24px;
    margin-top: 20px;
}

.settings-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e3f2fd;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.12);
    border-color: #2196F3;
}

.settings-card.danger-zone {
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
    border-color: #ffebee;
}

.settings-card.danger-zone:hover {
    border-color: #f44336;
}

.settings-card-header {
    background: linear-gradient(135deg, #f8fbff 0%, #e3f2fd 100%);
    padding: 24px;
    border-bottom: 1px solid #e3f2fd;
}

.danger-zone .settings-card-header {
    background: linear-gradient(135deg, #fff8f8 0%, #ffebee 100%);
    border-bottom-color: #ffebee;
}

.settings-card-header h3 {
    margin: 0 0 8px 0;
    color: #1a237e;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-card-header h3 i {
    color: #2196F3;
    font-size: 24px;
}

.danger-zone .settings-card-header h3 i {
    color: #f44336;
}

.settings-card-header p {
    margin: 0;
    color: #546e7a;
    font-size: 14px;
    line-height: 1.5;
}

.settings-card-content {
    padding: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a237e;
    font-size: 14px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-control:invalid {
    border-color: #f44336;
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: #78909c;
    font-size: 12px;
    line-height: 1.4;
}

.form-actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
}


.account-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #eceff1;
}

.account-action:last-child {
    border-bottom: none;
}

.action-info h4 {
    margin: 0 0 6px 0;
    color: #1a237e;
    font-size: 16px;
    font-weight: 600;
}

.action-info p {
    margin: 0;
    color: #546e7a;
    font-size: 14px;
    line-height: 1.4;
}

.action-button {
    flex-shrink: 0;
    margin-left: 20px;
}

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    max-width: 400px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert i {
    margin-right: 8px;
    font-size: 16px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Account Overview Dashboard Styles */
.account-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.account-info {
    display: grid;
    gap: 20px;
}

.account-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.account-detail:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.detail-icon i {
    color: #50ca59;
    font-size: 20px;
}

.detail-content {
    flex: 1;
    min-width: 0;
}

.detail-content h4 {
    margin: 0 0 6px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.detail-content p {
    margin: 0;
    color: #696969;
    font-size: 14px;
    line-height: 1.5;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: start;
    position: sticky;
    top: 20px;
}

/* Enhanced Account Actions Section */
.dashboard-section:has(.usage-stats) .subscription-status {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e3f2fd;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.08);
    transition: all 0.3s ease;
}

.dashboard-section:has(.usage-stats) .subscription-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.15);
}

.dashboard-section:has(.usage-stats) .usage-item {
    padding: 20px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #fafcff 100%);
    border: 1px solid #e8f4fd;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dashboard-section:has(.usage-stats) .usage-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.1);
    border-color: #bbdefb;
}

.dashboard-section:has(.usage-stats) .usage-item:last-child {
    margin-bottom: 0;
}

.dashboard-section:has(.usage-stats) .usage-label {
    color: #1a237e;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.dashboard-section:has(.usage-stats) .usage-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.dashboard-section:has(.usage-stats) .usage-value {
    color: #546e7a;
    font-weight: 500;
}

.dashboard-section:has(.usage-stats) .subscription-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8f4fd;
}

.dashboard-section:has(.usage-stats) .btn {
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-section:has(.usage-stats) .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.3);
}

/* ============================================
   SUBSCRIPTION PAGE REDESIGN - CRO ENHANCED
   ============================================ */

/* Hero Section */
.subscription-hero {
    background: #fff;
    box-shadow: 0 0 27px rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: visible;
}

.subscription-hero-content {
    padding: 40px 30px;
    text-align: center;
}

.subscription-hero-title {
    font-size: 32px;
    font-weight: 600;
    color: #696969;
    margin: 0 0 15px 0;
}

.subscription-hero-subtitle {
    font-size: 16px;
    color: #696969;
    margin: 0 0 20px 0;
    opacity: 0.9;
}

.subscription-hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-badge {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #696969;
}

.stat-badge i {
    color: #50ca59;
    font-size: 18px;
}

/* Current Subscription Summary */
.current-subscription-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 20px;
}

.subscription-info-card {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 20px;
    text-align: center;
}

.subscription-badge {
    display: inline-block;
    background: #50ca59;
    color: white;
    padding: 8px 16px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.subscription-badge-free {
    background: #7a7a7a;
}

.subscription-badge-premium {
    background: #50ca59;
}

.subscription-badge-pro {
    background: #696969;
}

.subscription-price-display {
    margin: 15px 0;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #696969;
}

.price-period {
    font-size: 16px;
    color: #696969;
    opacity: 0.7;
}

.next-billing-info {
    font-size: 14px;
    color: #696969;
    margin: 10px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.next-billing-info i {
    color: #50ca59;
}

/* Usage Stats Compact */
.usage-stats-compact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.usage-stat-item {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.usage-stat-item i {
    font-size: 24px;
    color: #50ca59;
    width: 32px;
    text-align: center;
}

.usage-stat-content {
    flex: 1;
}

.usage-stat-label {
    display: block;
    font-size: 12px;
    color: #696969;
    opacity: 0.7;
    margin-bottom: 4px;
}

.usage-stat-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #696969;
}

/* Scheduled Change Notice */
.scheduled-change-notice {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 3px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.scheduled-change-notice i {
    color: #856404;
    font-size: 20px;
    margin-top: 2px;
}

.scheduled-change-notice strong {
    color: #856404;
}

.scheduled-change-notice p {
    margin: 5px 0 0 0;
    color: #856404;
    font-size: 14px;
}

/* Current Plan Actions */
.current-plan-actions {
    margin-top: 20px;
    text-align: center;
}

.cancel-notice {
    font-size: 13px;
    color: #696969;
    opacity: 0.7;
    margin: 10px 0 0 0;
}

/* Price Comparison Callout */
.pricing-comparison-callout {
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
    border: 1px solid #50ca59;
    border-radius: 3px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.pricing-comparison-callout p {
    margin: 0;
    font-size: 15px;
    color: #696969;
}

.price-highlight {
    color: #50ca59;
    font-size: 18px;
}

/* Enhanced Plans Grid */
.plans-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.plan-card-enhanced {
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 0 27px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.plan-card-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 35px rgba(0, 0, 0, 0.1);
    border-color: #50ca59;
}

.plan-current {
    border-color: #50ca59;
    background: linear-gradient(135deg, #fff 0%, #f8fff8 100%);
}

.plan-featured {
    border-color: #696969;
}

.plan-clickable {
    transition: all 0.3s ease;
}

.plan-clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(80, 202, 89, 0.2);
    border-color: #50ca59;
}

.plan-clickable:active {
    transform: translateY(-5px);
}

/* Plan Ribbon */
.plan-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #50ca59;
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
}

/* Plan Badge Corner */
.plan-badge-corner {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #696969;
    color: white;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.plan-badge-corner i {
    font-size: 13px;
}

.plan-current .plan-badge-corner {
    top: 40px;
}

/* Plan Card Header */
.plan-card-header {
    padding: 30px 20px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.plan-current .plan-card-header {
    padding-top: 45px;
}

.plan-name {
    font-size: 24px;
    font-weight: 600;
    color: #696969;
    margin: 0 0 20px 0;
}

.plan-price-box {
    margin: 20px 0;
}

.plan-price-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.plan-price-main .currency {
    font-size: 20px;
    font-weight: 700;
    color: #50ca59;
    margin-top: 8px;
}

.plan-price-main .amount {
    font-size: 48px;
    font-weight: 700;
    color: #50ca59;
    line-height: 1;
}

.plan-price-period {
    font-size: 14px;
    color: #696969;
    opacity: 0.7;
    margin-top: 5px;
}

.plan-value-tag {
    display: inline-block;
    background: #50ca59;
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

/* Plan Card Body */
.plan-card-body {
    padding: 25px 20px;
    flex: 1;
}

.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features-list li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #696969;
}

.plan-features-list li i {
    color: #50ca59;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.plan-features-list li.feature-premium {
    font-weight: 500;
}

.plan-features-list li.feature-pro {
    font-weight: 500;
}

/* Plan Card Footer */
.plan-card-footer {
    padding: 0 20px 25px;
    text-align: center;
}

.plan-cta-subtext {
    font-size: 12px;
    color: #696969;
    opacity: 0.7;
    margin: 10px 0 0 0;
}

/* Enhanced Dashboard Buttons */
.dashboard-btn-primary {
    background: #50ca59;
    border-color: #50ca59;
    color: white;
    width: 100%;
}

.dashboard-btn-primary:hover {
    background: #3da449;
    border-color: #3da449;
}

.dashboard-btn-secondary {
    background: #7a7a7a;
    border-color: #7a7a7a;
    width: 100%;
}

.dashboard-btn-secondary:hover {
    background: #5a5a5a;
    border-color: #5a5a5a;
}

.dashboard-btn-current {
    background: #f8f9fa;
    border-color: #ddd;
    color: #50ca59;
    cursor: not-allowed;
    width: 100%;
}

.dashboard-btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.dashboard-btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
}

/* Enhanced Trust Badges Section */
.trust-badges-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.trust-badge-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
    border: 1px solid #e8f5e8;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.trust-badge-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(80, 202, 89, 0.12);
    border-color: #50ca59;
}

.trust-badge-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #50ca59 0%, #3da449 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(80, 202, 89, 0.25);
}

.trust-badge-icon i {
    font-size: 28px;
    color: #fff;
}

.trust-badge-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.trust-badge-card p {
    font-size: 13px;
    color: #696969;
    line-height: 1.5;
    margin: 0;
}

/* Subscription Trust Bar */
.subscription-trust-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 0 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #696969;
}

.trust-item i {
    color: #50ca59;
    font-size: 18px;
}

/* Feature Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
}

.feature-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.feature-comparison-table th,
.feature-comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.feature-comparison-table th {
    background: #f8f9fa;
    color: #696969;
    font-weight: 600;
    font-size: 14px;
}

.feature-comparison-table .feature-column {
    width: 40%;
}

.feature-comparison-table .plan-column {
    width: 20%;
    text-align: center;
}

.feature-comparison-table .plan-highlighted {
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
}

.feature-name {
    color: #696969;
    font-weight: 500;
}

.comparison-yes {
    color: #50ca59;
    font-size: 20px;
}

.comparison-no {
    color: #ddd;
    font-size: 20px;
}

.table-footer-row {
    background: #f8f9fa;
}

.table-footer-row td {
    padding: 20px 15px;
    font-size: 16px;
}

/* FAQ Section */
.faq-list {
    margin: 20px 0;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #696969;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question i {
    color: #50ca59;
    font-size: 20px;
}

.faq-answer {
    font-size: 14px;
    color: #696969;
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-nav {
        padding: 10px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 5px 8px;
    }
    
    .dashboard-content {
        padding: 15px;
    }

    .account-overview {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .account-actions {
        position: static;
        flex-direction: column;
        width: 100%;
    }

    .account-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 540px) {
    .page-heading {
        padding: 0 14px 16px 12px;
    }

    .dashboard-content {
        padding: 12px;
    }

    .dashboard-section {
        margin-bottom: 18px;
    }

    .dashboard-section-content {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    /* Page Heading Mobile Styles */
    .page-heading {
        padding: 0 20px 16px 10px;
        margin-bottom: 10px;
    }

    .page-heading h1 {
        font-size: 24px;
        gap: 10px;
    }

    .page-heading h1 i {
        font-size: 28px;
    }

    .page-heading p {
        font-size: 14px;
    }

    /* Subscription Page Mobile Styles */
    .subscription-hero-content {
        padding: 30px 20px;
    }

    .subscription-hero-title {
        font-size: 24px;
    }

    .subscription-hero-subtitle {
        font-size: 14px;
    }

    .subscription-hero-stats {
        flex-direction: column;
        gap: 10px;
    }

    .stat-badge {
        width: 100%;
        justify-content: center;
    }

    .current-subscription-summary {
        grid-template-columns: 1fr;
    }

    .plans-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .plan-card-enhanced {
        margin-bottom: 0;
    }

    .trust-badges-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trust-badge-card {
        padding: 20px 16px;
    }

    .trust-badge-icon {
        width: 50px;
        height: 50px;
    }

    .trust-badge-icon i {
        font-size: 24px;
    }

    .trust-badge-card h4 {
        font-size: 15px;
    }

    .trust-badge-card p {
        font-size: 12px;
    }

    .plan-badge-corner {
        font-size: 10px;
        padding: 4px 8px;
    }

    .plan-price-main .amount {
        font-size: 36px;
    }

    .feature-comparison-table {
        font-size: 13px;
    }

    .feature-comparison-table th,
    .feature-comparison-table td {
        padding: 10px 8px;
    }

    .faq-question {
        font-size: 15px;
    }

    .faq-answer {
        font-size: 13px;
    }

    .subscription-trust-bar {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .subscription-status {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .note-grid {
        grid-template-columns: 1fr;
    }
    
    .subscription-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn { justify-content: center; width: 100%; }
    .subscription-actions .link-toggle { width: auto; align-self: center; }
    /* Hide Most Popular badge on mobile */
    .plan-corner-badge,
    .plan-badge { display: none !important; }
    
    .dashboard-section-header {
        padding: 16px 20px 12px;
        font-size: 15px;
    }

    .form-actions {
        flex-direction: column;
    }

    .account-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .action-button {
        margin-left: 0;
        width: 100%;
    }

    .alert {
        position: static;
        margin: 20px 0;
        max-width: none;
    }

    .settings-card-header {
        padding: 20px;
    }

    .settings-card-content {
        padding: 20px;
    }
    
    .dashboard-section-content {
        padding: 18px;
    }
    
    .subscription-card {
        padding: 20px;
    }
    
    .plan-card {
        padding: 24px 20px;
    }
    
    .current-plan {
        padding: 20px;
    }
}

@media (max-width: 540px) {
    .dashboard-section-content {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .page-heading {
        padding: 0 10px 14px 8px;
    }

    .dashboard-content {
        padding: 10px 8px;
    }

    .dashboard-section-header {
        padding: 14px 16px 12px;
    }

    .dashboard-section-content {
        padding: 16px;
    }

    .notes-table tr {
        padding: 12px;
    }
}

/* Responsive tables for notes lists */
@media (max-width: 640px) {
    /* Hide table headers on small screens */
    .notes-table thead {
        display: none;
    }

    /* Turn table into stacked cards */
    .notes-table,
    .notes-table tbody,
    .notes-table tr,
    .notes-table td {
        display: block;
        width: 100%;
    }

    .notes-table tr {
        background: #ffffff;
        border: 1px solid #eee;
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .notes-table td {
        border: 0 !important;
        padding: 8px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    /* Label column using data-label attribute */
    .notes-table td::before {
        content: attr(data-label);
        color: #546e7a;
        font-weight: 600;
        font-size: 13px;
        flex: 0 0 120px;
        max-width: 50%;
    }

    /* Make URLs wrap nicely */
    .notes-table .note-url {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    /* Keep icon/status aligned to the right nicely */
    .notes-table .status-col {
        justify-content: space-between;
    }

    /* Actions become buttons-like chips and wrap */
    .notes-table .actions-col {
        flex-wrap: wrap;
        gap: 8px;
    }

    .notes-table .actions-col a {
        display: inline-block;
        background: #f3fff3;
        color: #50ca59;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 13px;
        text-decoration: none;
    }

    .notes-table .actions-col a:hover {
        background: #e8f5e8;
        color: #3da449;
        text-decoration: none;
    }
}

/* ============================================
   DARK MODE STYLES
   ============================================ */

/* Comparison Table Dark Mode */
body.dark .feature-comparison-table {
    background: #1d1d1d;
}

body.dark .feature-comparison-table th {
    background: #252525;
    color: #d4d4d4;
}

body.dark .feature-comparison-table td {
    background: #1d1d1d;
    color: #d4d4d4;
}

body.dark .feature-comparison-table th,
body.dark .feature-comparison-table td {
    border-bottom-color: #353535;
}

body.dark .feature-comparison-table .plan-highlighted {
    background: linear-gradient(135deg, #1a2a1a 0%, #1d331d 100%) !important;
}

body.dark .feature-name {
    color: #d4d4d4;
}

body.dark .comparison-no {
    color: #404040;
}

body.dark .feature-comparison-table td strong {
    color: #fff;
}

body.dark .table-footer-row {
    background: #252525;
}

body.dark .table-footer-row td {
    background: #252525 !important;
}

body.dark .table-footer-row .plan-highlighted {
    background: linear-gradient(135deg, #1a2a1a 0%, #1d331d 100%) !important;
}

/* FAQ Section Dark Mode */
body.dark .faq-item {
    border-bottom-color: #353535;
}

body.dark .faq-question {
    color: #d4d4d4;
}

body.dark .faq-answer {
    color: #b0b0b0;
}

/* Account Settings Dark Mode */
body.dark .settings-card {
    background: #1d1d1d;
    border-color: #353535;
}

body.dark .settings-card-header {
    background: #252525;
    border-bottom-color: #353535;
}

body.dark .settings-card-header h3 {
    color: #d4d4d4;
}

body.dark .settings-card-header p {
    color: #b0b0b0;
}

body.dark .form-group label {
    color: #d4d4d4;
}

body.dark .form-control {
    background: #252525;
    border-color: #404040;
    color: #d4d4d4;
}

body.dark .form-control:focus {
    border-color: #50ca59;
    box-shadow: 0 0 0 3px rgba(80, 202, 89, 0.15);
}

body.dark .form-hint {
    color: #696969;
}

body.dark .account-action {
    border-bottom-color: #353535;
}

body.dark .action-info h4 {
    color: #d4d4d4;
}

body.dark .action-info p {
    color: #b0b0b0;
}

body.dark .settings-card.danger-zone {
    background: #1d1d1d;
    border-color: rgba(244, 67, 54, 0.3);
}

body.dark .danger-zone .settings-card-header {
    background: rgba(244, 67, 54, 0.1);
    border-bottom-color: rgba(244, 67, 54, 0.2);
}

/* Dashboard Container Background - Different from Editor */
body.dark .dashboard-content-wrapper {
    background: #171717;
}

/* Account Settings Page Specific Dark Mode */
body.dark .settings-tabs-container {
    background: #1d1d1d;
}

body.dark .settings-tabs-nav {
    background: #252525;
    border-bottom-color: #353535;
}

body.dark .settings-tab-btn {
    color: #b0b0b0;
}

body.dark .settings-tab-btn:hover {
    background: rgba(80, 202, 89, 0.1);
    color: #50ca59;
}

body.dark .settings-tab-btn.active {
    color: #50ca59;
    background: #1d1d1d;
}

body.dark .settings-tabs-content {
    background: #1d1d1d;
}

body.dark .form-actions {
    border-top-color: #353535;
}

body.dark .subscription-card {
    background: #1d1d1d;
    border-color: #353535;
}

body.dark .subscription-card.active-subscription {
    border-color: #50ca59;
}

body.dark .subscription-header {
    background: #252525;
    border-bottom-color: #353535;
}

body.dark .subscription-card.active-subscription .subscription-header {
    background: rgba(80, 202, 89, 0.1);
    border-bottom-color: #50ca59;
}

body.dark .subscription-header h3 {
    color: #d4d4d4;
}

body.dark .subscription-info-row {
    border-bottom-color: #353535;
}

body.dark .subscription-info-row.warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
}

body.dark .info-label {
    color: #b0b0b0;
}

body.dark .info-value {
    color: #d4d4d4;
}

body.dark .subscription-features {
    background: #252525;
    border-top-color: #353535;
}

body.dark .subscription-features h4 {
    color: #696969;
}

body.dark .subscription-features li {
    color: #d4d4d4;
}

body.dark .subscription-actions {
    background: #252525;
    border-top-color: #353535;
}
