:root {
    --primary-color: #000;
    --secondary-color: #333;
    --tertiary-color: #666;
    --background-color: #fff;
    --surface-color: #fafafa;
    --border-color: #e5e5e5;
    --accent-color: #0070f3;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --translating-color: #5856D6;
    
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Authentication Pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    position: relative;
}

.back-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tertiary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.back-home:hover {
    color: var(--primary-color);
    transform: translateX(-2px);
}

.back-home svg {
    width: 20px;
    height: 20px;
}

.auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 1rem;
    color: var(--tertiary-color);
    font-weight: 400;
}

/* Forms */
.auth-form {
    width: 100%;
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    background-color: white;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgb(0 112 243 / 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.submit-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.submit-button:active {
    transform: translateY(0);
}

.auth-links {
    text-align: center;
    margin-top: 2rem;
}

.auth-links p {
    color: var(--tertiary-color);
    font-size: 0.9rem;
}

.auth-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--primary-color);
}

.auth-link-highlight {
    font-weight: 600;
}

/* Messages */
.success-message,
.error-message,
.info-message,
.flash-success,
.flash-error {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.success-message,
.flash-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.error-message,
.flash-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.info-message {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

/* Flash message icons */
.flash-success::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.flash-error::before {
    content: "✕";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Flash message animations */
.flash-success,
.flash-error {
    animation: flashSlideIn 0.3s ease-out;
}

@keyframes flashSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard */
.dashboard-container {
    min-height: 100vh;
    background-color: var(--surface-color);
}

.dashboard-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.dashboard-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-logo .logo-img {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-sm);
}

.dashboard-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tertiary-color);
}

.user-name-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tertiary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.user-name-link:hover {
    color: var(--primary-color);
}

.logout-button {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.logout-button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

/* Dashboard Main */
.dashboard-main {
    padding: 2.5rem 0;
}

.dashboard-welcome {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-welcome h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.dashboard-welcome p {
    font-size: 1.125rem;
    color: var(--tertiary-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tertiary-color);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-info {
    font-size: 0.85rem;
    color: var(--tertiary-color);
}

/* Sections */
.subscription-section,
.api-keys-section,
.history-section {
    background: white;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

/* Subscription */
.subscription-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.subscription-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.status-active {
    color: var(--success-color);
}

.status-inactive {
    color: var(--warning-color);
}

.subscription-status svg {
    width: 20px;
    height: 20px;
}

.subscribe-button {
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.subscribe-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.subscription-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.subscription-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.subscription-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--tertiary-color);
}

.subscription-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subscription-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--success-color);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 14px;
    height: 14px;
}

/* API Keys */
.api-key-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-key-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.api-key-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.api-key-info {
    flex: 1;
}

.api-key-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.api-key-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    color: var(--tertiary-color);
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.api-key-meta {
    font-size: 0.8rem;
    color: var(--tertiary-color);
}

.api-key-actions {
    display: flex;
    gap: 0.5rem;
}

.copy-key,
.delete-key {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-key:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.delete-key:hover {
    border-color: var(--error-color);
    color: var(--error-color);
}

.copy-key svg,
.delete-key svg {
    width: 16px;
    height: 16px;
}

.delete-key-form {
    display: inline;
}

/* History Table */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.history-table th,
.history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.history-table th {
    font-weight: 600;
    color: var(--primary-color);
    background: var(--surface-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.history-table td {
    color: var(--tertiary-color);
}

.language-flag {
    font-size: 1.5rem;
}

.date {
    font-size: 0.9rem;
}

/* How to Use */
.api-keys-section ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.api-keys-section li {
    margin-bottom: 0.75rem;
    color: var(--tertiary-color);
    line-height: 1.6;
}

/* Settings Page */
.back-to-dashboard {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tertiary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.back-to-dashboard:hover {
    color: var(--primary-color);
}

.back-to-dashboard svg {
    width: 16px;
    height: 16px;
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.info-item label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--tertiary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.settings-form {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

.settings-form .form-group {
    margin-bottom: 1.5rem;
}

.settings-form .submit-button {
    margin-top: 0.5rem;
}

/* Footer */
.dashboard-footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.dashboard-footer p {
    color: var(--tertiary-color);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .back-home {
        top: 1rem;
        left: 1rem;
        font-size: 0.85rem;
        position:relative;
    }
    
    .auth-form {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .dashboard-welcome h1 {
        font-size: 2rem;
    }
    
    .dashboard-welcome p {
        font-size: 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .subscription-section,
    .api-keys-section,
    .history-section {
        padding: 1.5rem;
    }
    
    .subscription-info {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .subscription-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .api-key-item {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .api-key-actions {
        flex-direction: column;
    }
    
    .user-menu {
        gap: 0.5rem;
    }
    
    .user-name {
        font-size: 0.85rem;
    }
    
    .user-name-link {
        padding: 0.5rem 0.75rem;
    }
    
    .account-info {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        padding: 1.25rem;
    }
    
    .settings-form {
        padding: 1.5rem;
    }
    
    /* Responsive for How to Use section */
    .how-to-use-section {
        padding: 1.5rem;
    }
    
    .how-to-use-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .steps-list li {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem 1rem;
    }
    
    .auth-form {
        padding: 1.5rem;
    }
    
    .dashboard-main {
        padding: 1.5rem 0;
    }
    
    .dashboard-welcome {
        margin-bottom: 2rem;
    }
    
    .dashboard-welcome h1 {
        font-size: 1.75rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .subscription-section,
    .api-keys-section,
    .history-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .history-table th,
    .history-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Responsive for How to Use section */
    .how-to-use-section {
        padding: 1.25rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .step-content h4 {
        font-size: 1rem;
    }
    
    .step-content p {
        font-size: 0.9rem;
    }
    
    .chrome-store-button {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
    
    .success-message {
        padding: 1rem;
    }
    
    .success-message p {
        font-size: 0.9rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Focus styles for accessibility */
.form-input:focus,
.submit-button:focus,
.copy-key:focus,
.delete-key:focus,
.logout-button:focus,
.subscribe-button:focus,
.auth-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .back-home,
    .logout-button,
    .copy-key,
    .delete-key,
    .subscribe-button {
        display: none;
    }
    
    .dashboard-container {
        background: white;
    }
    
    .stat-card,
    .subscription-section,
    .api-keys-section,
    .history-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* How to Use Section */
.how-to-use-section {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.how-to-use-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.video-container {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: #f5f5f5;
    margin-bottom: 1rem;
}

.video-container video {
    width: 100%;
    display: block;
}

.installation-steps {
    padding: 1rem 0;
}

.steps-list {
    list-style: none;
    counter-reset: steps-counter;
    margin-bottom: 2rem;
}

.steps-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.step-content p {
    color: var(--tertiary-color);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.chrome-store-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.chrome-store-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.chrome-store-button svg {
    flex-shrink: 0;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    padding: 1.25rem;
    border-radius: var(--border-radius);
}

.success-message svg {
    flex-shrink: 0;
    color: var(--success-color);
}

.success-message p {
    font-weight: 500;
    margin: 0;
}

/* Subscription Status Cards */
.sub-status-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.sub-status-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sub-premium {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    position: relative;
}

.sub-free {
    border-color: var(--border-color);
}

.sub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sub-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.sub-badge svg {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
}

.sub-badge-free {
    color: var(--tertiary-color);
}

.sub-badge-free svg {
    color: var(--tertiary-color);
}

.sub-pricing {
    text-align: right;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.sub-pricing span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--tertiary-color);
}

.sub-card-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sub-info-grid {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.sub-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.sub-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sub-info-item:first-child {
    padding-top: 0;
}

.sub-info-label {
    font-weight: 500;
    color: var(--tertiary-color);
    font-size: 0.95rem;
}

.sub-info-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.sub-info-value.status-active {
    color: var(--success-color);
}

.sub-info-value.status-inactive {
    color: var(--tertiary-color);
}

.sub-info-value.status-canceling {
    color: var(--warning-color);
}

.sub-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.cancel-sub-form {
    margin: 0;
}

.cancel-sub-btn,
.manage-sub-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-sub-btn:hover,
.manage-sub-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.sub-upgrade-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.sub-upgrade-section h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.sub-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sub-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.sub-features-list svg {
    color: var(--primary-color);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.sub-upgrade-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.2s ease;
    font-family: inherit;
    width: 100%;
}

.sub-upgrade-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Responsive adjustments for subscription cards */
@media (max-width: 768px) {
    .sub-status-card {
        padding: 1.5rem;
    }
    
    .sub-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .sub-pricing {
        text-align: left;
    }
    
    .sub-card-content {
        gap: 1.5rem;
    }
    
    .sub-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }
    
    .sub-upgrade-section {
        padding: 1.5rem;
    }
    
    .sub-features-list {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .sub-status-card {
        padding: 1rem;
    }
    
    .sub-badge {
        font-size: 1rem;
    }
    
    .sub-pricing {
        font-size: 1.5rem;
    }
    
    .sub-upgrade-section {
        padding: 1rem;
    }
}

.sub-cancellation-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.cancellation-icon {
    flex-shrink: 0;
    color: var(--warning-color);
    margin-top: 0.125rem;
}

.cancellation-icon svg {
    width: 20px;
    height: 20px;
}

.cancellation-text {
    flex: 1;
}

.cancellation-text strong {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cancellation-text p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0;
} 