/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #f1f5f9;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-muted: #f1f5f9;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --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);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --container-max-width: 1200px;
    --container-padding: 1rem;
    
    --transition: all 0.2s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(120deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn--secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn--full {
    width: 100%;
}

.btn__icon {
    font-size: 0.875em;
}

.btn--loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.btn__loading {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
}

.nav__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav__logo:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav__logo:hover .nav__logo-icon {
    transform: scale(1.1);
}

.nav__logo-icon {
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav__burger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.nav__burger span {
    width: 24px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    display: block;
    border-radius: 2px;
    margin: 3px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu Styles */
.nav__burger--open span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav__burger--open span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.nav__burger--open span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav__menu--open {
    display: flex !important;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
}

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

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__title {
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero__features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.hero__feature-icon {
    font-size: 1.25rem;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero__social-proof {
    text-align: center;
}

.hero__proof-text {
    display: block;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.hero__proof-logos {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__proof-logo {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Demo Window */
.demo-window {
    background: #1e293b;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: var(--transition);
}

.demo-window:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(2deg);
}

.demo-window__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #334155;
    border-bottom: 1px solid #475569;
}

.demo-window__controls {
    display: flex;
    gap: 0.5rem;
}

.demo-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.demo-control--red { background: #ef4444; }
.demo-control--yellow { background: #f59e0b; }
.demo-control--green { background: #10b981; }

.demo-window__title {
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
}

.demo-window__content {
    padding: 1rem;
}

.demo-code {
    margin-bottom: 1rem;
}

.demo-line {
    display: flex;
    gap: 1rem;
    padding: 0.25rem 0;
    transition: var(--transition);
}

.demo-line--suggestion {
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.5rem;
    animation: fadeInUp 0.5s ease-out;
}

.demo-number {
    color: #64748b;
    font-size: 0.875rem;
    min-width: 1.5rem;
    text-align: right;
}

.demo-text {
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
}

.demo-text--ai {
    color: var(--primary-light);
}

.demo-chat {
    background: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.demo-chat__message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.demo-chat__avatar {
    font-size: 1.5rem;
}

.demo-chat__text {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.5;
    position: relative;
}

.demo-chat__text.typing::after {
    content: '|';
    color: #10b981;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.stat__number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat__text {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-card__icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card__title {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card__text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-card__list {
    list-style: none;
}

.feature-card__list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.feature-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 600;
}

/* Comparison Section */
.comparison {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.comparison__table {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.comparison__header,
.comparison__row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
}

.comparison__header {
    background: var(--bg-muted);
    font-weight: 600;
}

.comparison__cell {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.comparison__cell--empty {
    background: transparent;
}

.comparison__cell--feature {
    justify-content: flex-start;
    font-weight: 600;
    color: var(--text-primary);
}

.comparison__cell--cursor {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.comparison__cell--others {
    color: var(--text-secondary);
}

.comparison__cell--yes {
    color: var(--success-color);
    font-weight: 600;
}

.comparison__cell--no {
    color: var(--error-color);
    font-weight: 600;
}

.comparison__cell--limited {
    color: var(--warning-color);
    font-weight: 600;
}

.comparison__logo {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial__content {
    margin-bottom: 2rem;
}

.testimonial__stars {
    color: var(--warning-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial__text {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__avatar {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    overflow: hidden;
}

.testimonial__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial__name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonial__role {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid var(--border-light);
    position: relative;
}

.pricing-card--popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.pricing-card--popular::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-xl);
    z-index: -1;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card--popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-card--popular .pricing-card__title,
.pricing-card--popular .pricing-card__subtitle,
.pricing-card--popular .pricing-feature__text,
.pricing-card--popular .pricing-card__note,
.pricing-card--popular .pricing-card__amount,
.pricing-card--popular .pricing-card__currency {
    color: white !important;
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.pricing-card__header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-card--popular .pricing-card__header {
    margin-top: 1rem;
    text-align: center;
}

.pricing-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-card__subtitle {
    color: var(--text-secondary);
}

.pricing-card__price {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-card__amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pricing-card__currency {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.pricing-card__discount {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 1rem;
}

.pricing-card__features {
    margin-bottom: 2rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.pricing-feature--note {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.pricing-feature__icon {
    color: var(--success-color);
    font-weight: 600;
    min-width: 1rem;
}

.pricing-feature--note .pricing-feature__icon {
    color: var(--accent-color);
}

.pricing-feature__text {
    color: var(--text-secondary);
}

.pricing-card__note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.pricing__guarantee {
    margin-top: 4rem;
    text-align: center;
}

.guarantee {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.guarantee__icon {
    font-size: 2rem;
}

.guarantee__title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.guarantee__text {
    color: var(--text-secondary);
    margin: 0;
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-item__question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-item__question:hover {
    color: var(--primary-color);
}

.faq-item__icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item--open .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-item--open .faq-item__answer {
    transition: max-height 0.4s ease-out;
}

.faq-item__answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    padding: 1rem 0 1.5rem 0;
}

/* FAQ Contact Block */
.faq__contact {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-xl);
    text-align: center;
}

.faq__contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.faq__contact-title {
    color: white;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.faq__contact-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.faq__contact-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.faq__contact-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq__contact-btn .btn__icon {
    margin-right: 0.5rem;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    text-align: left;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.step__number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
}

.step__title {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step__text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.cta__title {
    color: white;
    margin-bottom: 1rem;
}

.cta__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta__features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta__feature {
    opacity: 0.9;
    font-weight: 500;
}

/* CTA Button Override */
.cta .btn--primary {
    background: white;
    color: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.cta .btn--primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 4rem 0 2rem;
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer__main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer__logo-icon {
    font-size: 1.5rem;
}

.footer__description {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer__column-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer__link {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--primary-light);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copyright {
    color: var(--text-light);
}

.footer__payment {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__payment-text {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer__payment-methods {
    display: flex;
    gap: 1rem;
}

.footer__payment-method {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal--open {
    display: flex;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
}

.modal__content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.modal__title {
    margin: 0;
}

.modal__close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal__close:hover {
    color: var(--text-primary);
}

.modal__body {
    padding: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover {
    border-color: var(--primary-color);
}

.payment-method input[type="radio"] {
    margin: 0;
}

.payment-method__text {
    font-weight: 500;
}

.selected-plan {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    .nav__menu {
        display: none;
    }
    
    .nav__burger {
        display: flex !important;
        position: relative;
        z-index: 1001;
    }
    
    .hero__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero__cta {
        justify-content: center;
    }
    
    .hero__proof-logos {
        gap: 1rem;
    }
    
    .demo-window {
        transform: none;
    }
    
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Упрощенное отображение карточек возможностей для мобильных */
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card__list {
        display: none; /* Скрываем детальный список на мобильных */
    }
    
    .feature-card__text {
        font-size: 0.95rem;
        margin-bottom: 0;
    }
    
    /* Мобильная таблица сравнения */
    .comparison__table {
        display: block;
        background: none;
        box-shadow: none;
        border-radius: 0;
    }
    
    .comparison__header {
        display: none; /* Скрываем заголовки */
    }
    
    .comparison__row {
        display: flex;
        flex-direction: column;
        background: var(--bg-primary);
        border-radius: var(--radius-lg);
        padding: 1.5rem;
        margin-bottom: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    .comparison__cell--feature {
        font-weight: 600;
        font-size: 1.1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-light);
        text-align: left;
        justify-content: flex-start;
    }
    
    .comparison__cell--cursor,
    .comparison__cell--others {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        text-align: left;
    }
    
    .comparison__cell--cursor::before {
        content: "Cursor Pro: ";
        font-weight: 600;
        color: var(--primary-color);
    }
    
    .comparison__cell--others::before {
        content: "Другие редакторы: ";
        font-weight: 600;
        color: var(--text-secondary);
    }
    
    .comparison__cell {
        text-align: left;
        justify-content: flex-start;
        padding: 0.5rem 0;
        border-bottom: none;
    }
    
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
    
    .pricing__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card--popular {
        transform: none;
    }
    
    .pricing-card--popular:hover {
        transform: translateY(-8px);
    }
    
    .steps__grid {
        grid-template-columns: 1fr;
    }
    
    .guarantee {
        flex-direction: column;
        text-align: center;
    }
    
    .footer__main {
        grid-template-columns: 1fr;
    }
    
    .footer__links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .cta__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta__features {
        flex-direction: column;
    }
    
    .modal__content {
        width: 95%;
    }
    
    .modal__header,
    .modal__body {
        padding: 1.5rem;
    }
    
    .faq__contact {
        margin-top: 3rem;
        padding: 2rem 1.5rem;
    }
    
    .faq__contact-title {
        font-size: 1.5rem;
    }
    
    .faq__contact-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stats__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__links {
        grid-template-columns: 1fr;
    }
    
    .hero__cta {
        flex-direction: column;
    }
}

/* High resolution displays */
@media (min-resolution: 2dppx) {
    .demo-window {
        transform: perspective(1200px) rotateY(-12deg) rotateX(3deg);
    }
}

/* Dark mode preference */
/* Order Confirmation Styles */
.order-confirmation {
    padding: 8rem 0 6rem;
    background: var(--bg-secondary);
    min-height: 100vh;
}

.confirmation__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.confirmation__icon {
    margin-bottom: 2rem;
}

.success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation__details {
    margin-bottom: 3rem;
}

.confirmation__title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.confirmation__subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.order-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
    text-align: left;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.order-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.order-id {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
}

.order-details {
    display: grid;
    gap: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 150px;
}

.detail-value {
    color: var(--text-primary);
    text-align: right;
    flex: 1;
}

.subscription-link {
    word-break: break-all;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.status-pending {
    background: var(--warning-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.status-paid {
    background: #f59e0b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.status-completed {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.status-cancelled {
    background: var(--error-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.next-steps {
    margin-bottom: 3rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
}

.next-steps__title {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.steps-list {
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.step-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-item--completed {
    opacity: 0.8;
}

.step-item--completed .step-number {
    background: var(--success-color);
}

.step-item--completed .step-content h3 {
    color: var(--success-color);
}

.step-item--cancelled {
    opacity: 0.8;
}

.step-item--cancelled .step-number {
    background: var(--error-color);
}

.step-item--cancelled .step-content h3 {
    color: var(--error-color);
}

.confirmation__contact {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.confirmation__contact h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.confirmation__contact p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.confirmation__actions {
    margin-top: 2rem;
}

.order-not-found {
    background: var(--bg-primary);
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.not-found-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.order-not-found h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.order-not-found p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .order-confirmation {
        padding: 6rem 0 4rem;
    }
    
    .confirmation__title {
        font-size: 2rem;
    }
    
    .order-card {
        padding: 1.5rem;
    }
    
    .order-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
    }
    
    .step-content {
        text-align: center;
    }
}

/* Orders Management Styles */
.orders-management {
    padding: 6rem 0 4rem;
    background: var(--bg-secondary);
    min-height: 100vh;
}

.orders__header {
    margin-bottom: 3rem;
}

.orders__header h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.orders__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.orders__filters {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.orders__list {
    display: grid;
    gap: 1.5rem;
}

.order-item {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.order-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.order-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.order-item__info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.order-item__price {
    color: var(--primary-color);
    font-weight: 600;
}

.order-item__meta {
    text-align: right;
}

.order-item__id {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.order-item__date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.order-item__body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.order-item__details {
    display: grid;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 80px;
}

.detail-value {
    color: var(--text-primary);
    text-align: right;
    flex: 1;
}

.order-item__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 150px;
}

.status-select {
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.875rem;
}

.btn--danger {
    background: var(--error-color);
    color: white;
}

.btn--danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.order-item__status {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    display: flex;
    justify-content: center;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
}

.status-pending {
    background: var(--warning-color);
    color: white;
}

.status-paid {
    background: #f59e0b;
    color: white;
}

.status-completed {
    background: var(--success-color);
    color: white;
}

.status-cancelled {
    background: var(--error-color);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .orders__filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .orders__stats {
        grid-template-columns: 1fr;
    }
    
    .order-item__header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .order-item__meta {
        text-align: left;
    }
    
    .order-item__body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .order-item__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .detail-value {
        text-align: left;
    }
}

/* Form Checkbox Styles */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    padding: 0.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.form-checkbox input[type="checkbox"] {
    display: none;
}

.form-checkbox__checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: var(--bg-primary);
    flex-shrink: 0;
    margin-top: 1px;
}

.form-checkbox:hover .form-checkbox__checkmark {
    border-color: var(--primary-color);
}

.form-checkbox input[type="checkbox"]:checked + .form-checkbox__checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.form-checkbox input[type="checkbox"]:checked + .form-checkbox__checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.form-checkbox__text {
    color: var(--text-secondary);
    flex: 1;
}

.form-checkbox__text a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-checkbox__text a:hover {
    text-decoration: underline;
}

/* Payment Information Styles */
.payment-info {
    margin: 2rem 0;
}

.payment-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.payment-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.payment-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #ffd700;
}

.payment-details {
    display: grid;
    gap: 1rem;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.payment-label {
    font-weight: 600;
    opacity: 0.9;
}

.payment-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.payment-notice {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.2);
    border-radius: var(--radius-md);
    border-left: 4px solid #ffd700;
}

.payment-notice p {
    margin: 0;
    font-size: 0.9rem;
}

/* Receipt Upload Styles */
.receipt-upload {
    margin: 2rem 0;
}

.upload-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 2px dashed var(--border-color);
    transition: var(--transition);
}

.upload-card:hover {
    border-color: var(--primary-color);
}

.upload-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.upload-card p {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary);
}

.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.upload-area:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-text span {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-text small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.uploaded-file {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--success-color);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    font-size: 1.5rem;
}

.file-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.remove-file {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: var(--transition);
}

.remove-file:hover {
    opacity: 1;
    transform: scale(1.1);
}

.upload-actions {
    margin-top: 1.5rem;
    text-align: center;
}

/* Enhanced Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 420px;
    min-width: 320px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.notification--success {
    background: linear-gradient(135deg, #10b981, #059669);
    border-left: 4px solid #047857;
}

.notification--error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-left: 4px solid #b91c1c;
}

.notification--warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-left: 4px solid #b45309;
}

.notification--info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-left: 4px solid #1d4ed8;
}

.notification__content {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 12px;
    color: white;
}

.notification__icon {
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.notification__body {
    flex: 1;
    min-width: 0;
}

.notification__message {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
}

.notification__close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0.8;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notification__close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.notification__close:active {
    transform: scale(0.95);
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

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

/* Multiple notifications stacking */
.notification:nth-child(2) {
    top: 100px;
    transform: scale(0.95);
    z-index: 9999;
}

.notification:nth-child(3) {
    top: 170px;
    transform: scale(0.9);
    z-index: 9998;
}

.notification:nth-child(n+4) {
    display: none;
}

/* Notification removal animation */
.notification--removing {
    animation: slideOutRight 0.3s ease-in-out forwards;
}

/* Mobile Responsive for New Elements */
@media (max-width: 768px) {
    .payment-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .payment-amount {
        font-size: 1.5rem;
    }
    
    .payment-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    /* Mobile notification styles */
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
        border-radius: 8px;
        animation: slideInDown 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .notification__content {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .notification__icon {
        font-size: 18px;
    }
    
    .notification__message {
        font-size: 13px;
    }
    
    .notification__close {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
    
    /* Mobile notification stacking */
    .notification:nth-child(2) {
        top: 80px;
        transform: scale(0.98);
    }
    
    .notification:nth-child(3) {
        top: 140px;
        transform: scale(0.96);
    }
}

/* Mobile animation for notifications */
@media (max-width: 768px) {
    @keyframes slideInDown {
        from {
            transform: translateY(-100%) scale(0.8);
            opacity: 0;
        }
        to {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }
    
    @keyframes slideOutUp {
        from {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
        to {
            transform: translateY(-100%) scale(0.8);
            opacity: 0;
        }
    }
    
    .notification--removing {
        animation: slideOutUp 0.3s ease-in-out forwards;
    }
}

/* Admin Login Styles */
.admin-login {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.login-logo-icon {
    font-size: 48px;
    animation: pulse 2s infinite;
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.login-subtitle {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

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

.form-input--admin {
    font-size: 16px;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-input--admin:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 2FA Styles */
.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

#twoFactorCode {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

/* Animation for 2FA transition */
#twoFactorGroup {
    animation: slideInDown 0.3s ease-out;
}

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

.login-actions {
    margin-top: 24px;
}

.btn--full {
    width: 100%;
    font-size: 16px;
    padding: 16px;
    border-radius: 12px;
}

.login-info {
    margin-bottom: 24px;
}

.security-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 14px;
    color: #6b7280;
}

.security-icon {
    font-size: 16px;
}

.security-notice p {
    margin: 0;
}

.login-footer {
    text-align: center;
}

.back-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #5a67d8;
}

/* Admin Panel Header */
.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.admin-header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.admin-header__user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.network-status {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    color: white;
}

.status-indicator {
    font-size: 8px;
}

.admin-logout {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.admin-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Security Notice */
.security-alert {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.security-alert__icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Mobile responsive for admin login */
@media (max-width: 480px) {
    .admin-login {
        padding: 10px;
    }
    
    .login-card {
        padding: 24px;
    }
    
    .login-logo h1 {
        font-size: 24px;
    }
    
    .login-subtitle {
        font-size: 14px;
    }
    
    .admin-header__content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Mobile styles for admin panel */
@media (max-width: 768px) {
    .admin-header {
        padding: 0.75rem 0;
        margin-bottom: 1rem;
    }
    
    .admin-header__content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-header h1 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .admin-header__user {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .network-status {
        font-size: 12px;
        padding: 3px 6px;
        margin-right: 0 !important;
    }
    
    .admin-logout {
        font-size: 12px !important;
        padding: 6px 10px !important;
        min-width: auto;
        margin-right: 0 !important;
    }
    
    /* Stats cards mobile */
    .orders__stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Revenue analytics mobile */
    .revenue-cards {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .revenue-card {
        padding: 1rem;
    }
    
    .analytics-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Orders management mobile */
    .orders-management {
        padding: 1rem 0;
    }
    
    .orders__header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .orders__header h1 {
        font-size: 1.5rem;
        margin: 0;
    }
    
    /* Container mobile */
    .container {
        padding: 0 1rem;
    }
    
    /* Security alert mobile */
    .security-alert {
        padding: 1rem;
        margin: 1rem 0;
        text-align: center;
    }
    
    .security-alert p {
        font-size: 0.9rem;
        margin: 0;
    }
    
    /* Bulk actions mobile */
    .bulk-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .bulk-actions button {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    /* Pagination mobile */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .pagination button {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Shake animation for form validation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@media (prefers-color-scheme: dark) {
    /* This could be implemented for dark mode support */
}

/* Student Plan Credentials Styles */
.student-credentials {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    position: relative;
}

.student-credentials::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 12px;
    z-index: -1;
}

.student-credentials h4 {
    margin: 0 0 1rem 0;
    color: #1e40af;
    font-weight: 600;
    font-size: 1rem;
}

.credentials-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.credential-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.credential-row label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.credential-row input,
.credential-row textarea {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: white;
}

.credential-row input:focus,
.credential-row textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.credential-row textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.credential-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.credential-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.credential-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Student Access Section on Order Page */
.student-access-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.student-access-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #3b82f6, #8b5cf6);
}

.access-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.access-header h3 {
    margin: 0;
    color: #0c4a6e;
    font-weight: 600;
    font-size: 1.25rem;
}

.access-badge {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.access-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.access-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.access-item.instructions {
    margin-top: 0.5rem;
}

.access-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.access-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.credential-text {
    background: white;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: #1f2937;
    flex: 1;
    min-width: 200px;
    word-break: break-all;
}

.copy-credential-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
}

.copy-credential-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.access-instructions {
    background: white;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    line-height: 1.6;
    white-space: pre-wrap;
}

.access-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    border-radius: 0 8px 8px 0;
}

.access-info p {
    margin: 0;
    color: #1e40af;
    font-size: 0.9rem;
}

/* Responsive Design for Student Features */
@media (max-width: 768px) {
    .access-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .access-value {
        flex-direction: column;
        align-items: stretch;
    }
    
    .credential-text {
        min-width: unset;
    }
    
    .credential-actions {
        flex-direction: column;
    }
    
    .credential-actions .btn {
        text-align: center;
    }
}

/* Orders Table Styles */
.orders-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 400px);
    min-height: 600px;
}

.orders-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    position: relative;
}

.orders-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
}

.orders-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    overflow: hidden;
    text-overflow: ellipsis;
    border-right: 1px solid transparent;
    transition: border-color 0.2s ease;
}



.column-resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: transparent;
    cursor: col-resize;
    user-select: none;
    z-index: 10;
    opacity: 0;
    transition: all 0.2s ease;
}

.column-resizer:hover,
.column-resizer.resizing {
    background: #3b82f6;
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.orders-table th:hover .column-resizer {
    background: #e5e7eb;
    opacity: 0.5;
}

.column-resizer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -3px;
    right: -3px;
    height: 100%;
    background: transparent;
}

/* Добавим индикатор того, что столбец можно изменить */
.orders-table th:hover:not(:last-child) {
    border-right-color: #e5e7eb;
}

.orders-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
    overflow: hidden;
    text-overflow: ellipsis;
}

.orders-table td:not(:last-child) {
    border-right: 1px solid #f3f4f6;
}

/* Колонки с однострочным текстом */
.orders-table .col-checkbox,
.orders-table .col-id,
.orders-table .col-date {
    white-space: nowrap;
}

/* Колонки с переносом текста */
.orders-table .col-client,
.orders-table .col-plan,
.orders-table .col-status,
.orders-table .col-actions {
    white-space: normal;
}

/* Ширины столбцов по умолчанию */
.orders-table .col-checkbox {
    width: 60px;
    min-width: 60px;
}

.orders-table .col-id {
    width: 100px;
    min-width: 80px;
}

.orders-table .col-date {
    width: 120px;
    min-width: 100px;
}

.orders-table .col-client {
    width: 250px;
    min-width: 200px;
}

.orders-table .col-bank {
    width: 120px;
    min-width: 100px;
}

.orders-table .col-plan {
    width: 180px;
    min-width: 150px;
}

.orders-table .col-status {
    width: 160px;
    min-width: 140px;
}

.orders-table .col-actions {
    width: 180px;
    min-width: 160px;
}

.order-row:hover {
    background-color: #f9fafb;
}

.order-id {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-weight: 600;
    color: #1f2937;
    background: #f0f9ff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e0f2fe;
}

.order-date {
    color: #6b7280;
    font-size: 0.85rem;
}

.client-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 200px;
}

.client-name {
    font-weight: 500;
    color: #111827;
}

.client-email {
    color: #6b7280;
    font-size: 0.85rem;
}

.client-telegram {
    color: #3b82f6;
    font-size: 0.85rem;
}

.plan-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
}

.plan-name {
    font-weight: 500;
    color: #111827;
}

.plan-price {
    color: #059669;
    font-size: 0.85rem;
    font-weight: 500;
}

.plan-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.2rem;
}

.order-status {
    min-width: 140px;
}

.status-select {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
    margin-bottom: 0.5rem;
}

.status-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-paid {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 140px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.btn-icon--danger:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.modal-header h3 {
    margin: 0;
    color: #111827;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

/* Order Details Modal */
.order-details-modal {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.detail-section h4 {
    margin: 0 0 1rem 0;
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.85rem;
}

.detail-value {
    color: #111827;
    font-weight: 500;
}

.subscription-link-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.subscription-link-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    color: #374151;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.85rem;
}

/* Student Modal */
.student-modal {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.student-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
}

.student-info h4 {
    margin: 0 0 0.5rem 0;
    color: #0c4a6e;
}

.student-info p {
    margin: 0.25rem 0;
    color: #374151;
    font-size: 0.9rem;
}

.credentials-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.credentials-section h4 {
    margin: 0 0 1rem 0;
    color: #374151;
    font-weight: 600;
}

.credential-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    color: #374151;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

.credentials-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.credentials-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-sent,
.status-visible {
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-sent {
    background: #d1fae5;
    color: #065f46;
}

.status-visible {
    background: #dbeafe;
    color: #1e40af;
}

/* Responsive Design for Table */
@media (max-width: 1200px) {
    .orders-table {
        font-size: 0.85rem;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 0.75rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .orders-table-container {
        margin: 1rem 0;
        border-radius: 8px;
        height: calc(100vh - 300px);
        min-height: 500px;
    }
    
    .orders-table-wrapper {
        overflow-x: auto;
        overflow-y: auto;
    }
    
    .orders-table {
        min-width: 900px;
        font-size: 0.8rem;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    .orders-table th {
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    /* Hide less important columns on mobile */
    .orders-table .col-email,
    .orders-table .col-telegram {
        display: none;
    }
    
    /* Make important columns more visible */
    .orders-table .col-id {
        min-width: 80px;
        font-weight: 600;
    }
    
    .orders-table .col-name {
        min-width: 120px;
        font-weight: 500;
    }
    
    .orders-table .col-plan {
        min-width: 100px;
    }
    
    .orders-table .col-status {
        min-width: 90px;
    }
    
    .orders-table .col-actions {
        min-width: 80px;
    }
    
    /* Filters mobile */
    .filters-main {
        flex-direction: column;
        gap: 0.75rem;
        justify-content: flex-start !important;
        align-items: stretch !important;
        width: 100%;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .filter-group label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
        text-align: left;
    }
    
    .filter-group input,
    .filter-group select {
        font-size: 0.9rem;
        width: 100%;
        padding: 0.5rem;
    }
    
    .filter-actions {
        align-self: flex-start;
        justify-content: flex-start;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Modal improvements */
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        max-height: 95vh;
        margin: 0;
        border-radius: 8px;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .detail-label {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .detail-input,
    .detail-value {
        width: 100%;
        font-size: 0.9rem;
    }
    
    .subscription-link-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .credentials-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .credentials-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* Enhanced Orders Filters */
.orders__filters {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
}

.filters-main {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
    justify-content: center !important;
    margin-bottom: 1rem;
}

.table-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    gap: 1rem;
    flex-wrap: wrap;
}

.table-info-left {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: #6b7280;
}

.table-controls-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.table-controls-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 140px;
}

.filter-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.8rem;
    white-space: nowrap;
}

.filter-group input,
.filter-group select {
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    min-width: 0;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-self: end;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.table-settings,
.pagination-settings,
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pagination-settings label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

/* Table Settings Panel */
.table-settings-panel {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.settings-header h4 {
    margin: 0;
    color: #374151;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.settings-content {
    padding: 1rem 1.5rem;
}

.settings-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.settings-row label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
    white-space: nowrap;
}

.settings-row input {
    margin: 0;
}

/* Enhanced Table Styles */
.table-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 1rem;
}

.table-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: #6b7280;
}

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

.checkbox-column {
    width: 40px;
    text-align: center;
}

.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.2s ease;
}

.sortable:hover {
    background: #f3f4f6;
}

.sort-indicator {
    margin-left: 0.5rem;
    color: #3b82f6;
    font-weight: bold;
}

.order-row.student-row {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
}

.order-row.compact {
    font-size: 0.85rem;
}

.order-row.compact td {
    padding: 0.5rem;
}

.row-number {
    color: #6b7280;
    font-weight: 500;
    text-align: center;
    width: 60px;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 1rem;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.pagination-jump {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-jump input {
    width: 60px;
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    text-align: center;
}

/* Button Variants */
.btn--sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.btn--warning {
    background: #f59e0b;
    color: white;
}

.btn--warning:hover {
    background: #d97706;
}

.btn--warning:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Compact Table Mode */
.orders-table.compact-mode {
    font-size: 0.8rem;
}

.orders-table.compact-mode th,
.orders-table.compact-mode td {
    padding: 0.5rem;
}

.orders-table.compact-mode .client-info,
.orders-table.compact-mode .plan-info {
    gap: 0.125rem;
}

.orders-table.compact-mode .client-email,
.orders-table.compact-mode .client-telegram,
.orders-table.compact-mode .plan-price {
    font-size: 0.75rem;
}

/* Enhanced Responsive Design */
@media (max-width: 1400px) {
    .settings-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .filter-row {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table-settings,
    .pagination-settings,
    .bulk-actions {
        justify-content: center;
    }
    
    .pagination-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .orders__filters {
        padding: 1rem;
        display: block;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .table-info {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .table-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .orders-table {
        min-width: 900px;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
}

/* Enhanced Table Functionality */
.table-controls-row .bulk-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.table-controls-row .pagination-settings {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.9rem;
}

.table-controls-row .pagination-settings label {
    font-weight: 500;
    color: #374151;
}

.table-controls-row .pagination-settings select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.85rem;
}

.table-controls-row .export-actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive improvements for new layout */
@media (max-width: 1024px) {
    .filters-main {
        justify-content: center;
    }
    
    .filter-group {
        min-width: 120px;
    }
    
    .table-controls-row {
        justify-content: center;
        text-align: center;
    }
    
    .table-controls-center {
        order: 1;
        width: 100%;
    }
    
    .table-info-left {
        order: 2;
    }
    
    .table-controls-right {
        order: 3;
    }
    
    /* Планшетные стили для sales-chart-bars */
    .sales-chart-bars {
        width: 100%;
        justify-content: space-between;
        gap: 0.4rem;
        padding: 0.75rem 0;
        margin: 0;
    }
    
    .sales-bar-container {
        flex: 1;
        min-width: 40px;
        max-width: 65px;
    }
    
    .sales-bar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .filters-main {
        gap: 0.5rem;
    }
    
    .filter-group {
        min-width: 100px;
    }
    
    .filter-group label {
        font-size: 0.75rem;
    }
    
    .filter-group input,
    .filter-group select {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    
    .table-controls-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .bulk-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .page-numbers {
        order: 2;
        justify-content: center;
    }
    
    .pagination-info {
        order: 1;
        text-align: center;
    }
    
    .pagination-jump {
        order: 3;
        justify-content: center;
    }
}

/* View Toggle Section Styles */
.view-toggle-section {
    background: var(--bg-primary);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

/* Archive System Styles */
.admin-header__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.view-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 0.25rem;
    gap: 0.25rem;
}

.toggle-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: #6b7280;
    white-space: nowrap;
}

.toggle-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.toggle-btn.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

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

/* Archive specific button styles */
.btn--info {
    background: #0ea5e9;
    color: white;
}

.btn--info:hover {
    background: #0284c7;
}

.btn--info:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn--success {
    background: #10b981;
    color: white;
}

.btn--success:hover {
    background: #059669;
}

.btn--success:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-icon--archive {
    color: #0ea5e9;
}

.btn-icon--archive:hover {
    background: #eff6ff;
    color: #0284c7;
}

.btn-icon--unarchive {
    color: #10b981;
}

.btn-icon--unarchive:hover {
    background: #f0fdf4;
    color: #059669;
}

/* Stats card updates */
.orders__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Responsive design for archive system */
@media (max-width: 1024px) {
    .admin-header__actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .admin-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .view-toggle {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .toggle-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .admin-actions .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .orders__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .orders__stats {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Revenue Analytics Styles */
.revenue-analytics {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.analytics-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.5rem;
}

.analytics-period select {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
}

.analytics-period select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Revenue Cards */
.revenue-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.revenue-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: black;
    position: relative;
    overflow: hidden;
}

.revenue-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.revenue-card.total-revenue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.revenue-card.avg-revenue {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.revenue-card.monthly-revenue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.revenue-card.conversion-rate {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.revenue-card .revenue-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.revenue-amount {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.revenue-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.revenue-trend {
    font-size: 0.8rem;
}

.trend-up {
    color: black;
}

.trend-down {
    color: #fca5a5;
}

.trend-neutral {
    color: #d1d5db;
}

/* Charts */
.analytics-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.chart-container {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    overflow: visible;
    min-height: 250px;
    position: relative;
}

.chart-content {
    overflow-x: auto;
    overflow-y: hidden;
}

.chart-container::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 20px;
    height: 20px;
    background: linear-gradient(to left, rgba(249, 250, 251, 1) 0%, rgba(249, 250, 251, 0) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chart-container.scrollable::after {
    opacity: 1;
}

.chart-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.1rem;
}

.chart-period {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.period-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.period-btn:hover {
    background: #f3f4f6;
}

.period-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Plan Revenue Chart */
.plan-revenue-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.plan-info {
    flex: 1;
}

.plan-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.plan-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.plan-revenue {
    color: #059669;
    font-weight: 600;
}

.plan-count {
    color: #6b7280;
}

.plan-bar {
    flex: 2;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 1rem;
}

.plan-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.plan-bar-monthly {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.plan-bar-yearly {
    background: linear-gradient(90deg, #10b981, #059669);
}

.plan-bar-student {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.plan-percentage {
    font-weight: 600;
    color: #374151;
    min-width: 50px;
    text-align: right;
}

/* Sales Chart */
.sales-chart-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.sales-chart-bars {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    height: 280px;
    padding: 1rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    justify-content: space-between;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.sales-chart-bars::-webkit-scrollbar {
    height: 8px;
}

.sales-chart-bars::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.sales-chart-bars::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.sales-chart-bars::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sales-bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-width: 45px;
    max-width: 80px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 0.25rem;
    margin: -0.25rem;
}

.sales-bar-container:active {
    transform: scale(0.95);
}

.sales-bar-container:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.sales-bar {
    flex: 1;
    width: 100%;
    max-width: 35px;
    display: flex;
    align-items: end;
    margin-bottom: 0.75rem;
    position: relative;
    background: rgba(229, 231, 235, 0.3);
    border-radius: 4px;
}

.sales-bar-fill {
    width: 100%;
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: all 0.3s ease;
    position: relative;
    align-self: flex-end;
}

.sales-bar-container:hover .sales-bar-fill,
.sales-bar-container.selected .sales-bar-fill {
    transform: scaleY(1.05) scaleX(1.02);
    filter: brightness(1.1) saturate(1.2);
    transform-origin: bottom;
}

.sales-bar-container.selected {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.05);
}

.sales-bar-container.selected .sales-bar-label {
    color: #1d4ed8;
    font-weight: 600;
}

.sales-bar-label {
    font-size: 0.7rem;
    color: #374151;
    margin-bottom: 0.25rem;
    text-align: center;
    font-weight: 500;
    line-height: 1.1;
    min-height: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.label-line {
    line-height: 1.1;
}

.label-line-second {
    font-size: 0.6rem;
    color: #6b7280;
    margin-top: 0.1rem;
    line-height: 1.1;
}

.sales-bar-value {
    font-size: 0.65rem;
    color: #059669;
    font-weight: 600;
    text-align: center;
    background: #f0fdf4;
    padding: 0.2rem 0.3rem;
    border-radius: 3px;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Top Periods */
.top-period-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.75rem;
}

.period-rank {
    width: 30px;
    height: 30px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.period-info {
    flex: 1;
}

.period-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.period-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.period-revenue {
    color: #059669;
    font-weight: 600;
}

.period-orders {
    color: #6b7280;
}

.period-medal {
    font-size: 1.5rem;
}

/* Responsive Design for Revenue Analytics */
@media (max-width: 1024px) {
    .analytics-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
    }
    
    .revenue-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .revenue-analytics {
        padding: 1.5rem;
    }
    
    .revenue-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .revenue-card {
        padding: 1.25rem;
    }
    
    .revenue-amount {
        font-size: 1.5rem;
    }
    
    .chart-container {
        padding: 1rem;
        width: 100%;
        overflow: hidden;
        overflow-x: auto;
    }
    
    .analytics-charts {
        grid-template-columns: 1fr;
    }
    
    .chart-header {
        gap: 0.75rem;
        text-align: center;
    }
    
    .chart-period {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .period-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
    }
    
    .plan-revenue-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .plan-stats {
        flex-direction: column;
        gap: 0.25rem;
        align-items: center;
    }
    
    .plan-bar {
        order: -1;
        margin: 0;
        width: 100%;
    }
    
    .sales-chart-legend {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .legend-item {
        font-size: 0.7rem;
    }
    
    .legend-color {
        width: 10px;
        height: 10px;
    }

    .sales-chart-bars {
        height: 250px;
        gap: 0.3rem;
        overflow-x: auto;
        padding: 0.5rem;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        justify-content: space-between;
    }
    
    .sales-chart-bars::-webkit-scrollbar {
        height: 6px;
    }
    
    .sales-bar-container {
        flex: 1;
        min-width: 35px;
        max-width: 60px;
        flex-shrink: 0;
    }
    
    .sales-bar {
        width: 100%;
        background: rgba(229, 231, 235, 0.2);
    }
    
    .sales-bar-label {
        font-size: 0.6rem;
        min-height: 2rem;
    }
    
    .label-line-second {
        font-size: 0.55rem;
    }
    
    .sales-bar-value {
        font-size: 0.6rem;
        padding: 0.15rem 0.25rem;
        min-height: 1.3rem;
    }
    

    
    .period-stats {
        flex-direction: column;
        gap: 0.25rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .analytics-header h2 {
        font-size: 1.25rem;
    }
    
    .revenue-card .revenue-icon {
        font-size: 1.5rem;
    }
    
    .revenue-amount {
        font-size: 1.25rem;
    }
    
    .chart-container {
        padding: 0.75rem;
    }
    
    .chart-header h3 {
        font-size: 1rem;
    }
    
    .period-btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .sales-chart-bars {
        height: 220px;
        gap: 0.25rem;
        padding: 0.5rem 0.25rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .sales-chart-bars::-webkit-scrollbar {
        height: 4px;
    }
    
    .sales-bar-container {
        min-width: 30px;
        width: 30px;
        flex-shrink: 0;
    }
    
    .sales-bar {
        max-width: 25px;
        background: rgba(229, 231, 235, 0.15);
    }
    
    .sales-bar-label {
        font-size: 0.55rem;
        min-height: 1.8rem;
    }
    
    .label-line-second {
        font-size: 0.5rem;
    }
    
    .sales-bar-value {
        font-size: 0.55rem;
        padding: 0.1rem 0.2rem;
        min-height: 1.2rem;
    }
    
    .top-period-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .period-rank {
        order: -1;
    }
}

/* Bank Selection Styles */
.bank-selection {
    margin: 20px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.bank-label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.bank-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bank-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.bank-select:hover {
    border-color: #cbd5e0;
}

.bank-select option {
    padding: 8px;
}

/* Responsive styles for bank selection */
@media (max-width: 768px) {
    .bank-selection {
        margin: 16px 0;
        padding: 12px;
    }
    
    .bank-select {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Стили для правовых страниц */
.legal-page {
    padding: 6rem 0 4rem;
    background: var(--bg-primary);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.legal-date {
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
}

.legal-text {
    line-height: 1.8;
    color: var(--text-primary);
}

.legal-text h2 {
    color: var(--primary-color);
    margin: 2.5rem 0 1rem 0;
    font-size: 1.5rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.legal-text h3 {
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    font-size: 1.25rem;
}

.legal-text ul, .legal-text ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-text li {
    margin: 0.5rem 0;
}

.legal-text p {
    margin: 1rem 0;
}

.legal-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-text a:hover {
    color: var(--primary-dark);
}

.legal-note {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.legal-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Таблица для Cookie */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

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

.cookie-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.cookie-table tr:nth-child(even) {
    background: var(--bg-secondary);
}

/* Улучшенное модальное окно заказа */
.order-modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.order-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    margin: -1rem -1rem 0 -1rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.order-modal-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.order-modal-title h3 {
    margin: 0;
    font-size: 1.5rem;
}

.order-id-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
}

.order-modal-body {
    padding: 2rem 1rem 1rem 1rem;
}

.order-details-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-section {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.detail-section h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.detail-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: white;
}

.detail-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.detail-input:hover {
    border-color: #d1d5db;
}

.subscription-link-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.copy-btn {
    padding: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.student-section {
    border: 2px solid var(--success-color);
}

.student-section h4 {
    color: var(--success-color);
}

.student-credentials {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--success-color);
}

.credential-form .form-group {
    margin-bottom: 1rem;
}

.credential-form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.credential-form input,
.credential-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.credentials-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.order-actions-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.order-actions-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.order-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-group label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 120px;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Адаптивность для правовых страниц */
@media (max-width: 768px) {
    .legal-page {
        padding: 4rem 0 2rem;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .legal-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-table {
        font-size: 0.8rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .order-modal-content {
        max-width: 95vw;
        margin: 1rem;
    }
    
    .order-modal-title {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .action-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-group label {
        min-width: auto;
    }
    
    .credentials-actions {
        flex-direction: column;
    }
    
    .action-buttons {
        justify-content: center;
    }
}