/* Design system: HSL-only semantic tokens, gradients, shadows, motion */
:root {
    /* Base surfaces */
    --background: 0 0% 100%;
    --foreground: 224 71% 4%;
    --card: 0 0% 100%;
    --card-foreground: 224 71% 4%;
    --popover: 0 0% 100%;
    --popover-foreground: 224 71% 4%;

    /* Brand & accents (friendly greens/yellows/blues) */
    --primary: 152 60% 40%; /* fresh green */
    --primary-foreground: 0 0% 100%;
    --secondary: 50 92% 90%; /* soft yellow background */
    --secondary-foreground: 152 60% 20%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 35%;
    --accent: 200 92% 90%; /* light blue */
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 152 60% 40%;
    --radius: 0.75rem;

    /* Gradients & effects */
    --gradient-primary: linear-gradient(135deg, hsl(152 60% 40%) 0%, hsl(152 60% 50%) 45%, hsl(190 85% 45%) 100%);
    --gradient-subtle: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(210 40% 98%) 100%);
    --shadow-soft: 0 8px 24px hsl(152 60% 40% / 0.15);
    --shadow-glow: 0 0 40px hsl(190 85% 50% / 0.25);
}

.dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 5.5%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 5.5%;
    --popover-foreground: 210 40% 98%;
    --primary: 152 60% 45%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 70%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 152 60% 45%;
    --gradient-primary: linear-gradient(135deg, hsl(152 60% 45%) 0%, hsl(152 60% 55%) 45%, hsl(190 85% 50%) 100%);
    --gradient-subtle: linear-gradient(180deg, hsl(222.2 84% 6%) 0%, hsl(222.2 84% 4.9%) 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: hsl(var(--border));
}

html {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    border: none;
    padding: 0.5rem 1rem;
    height: 2.5rem;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px hsl(var(--ring));
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    background-color: hsl(var(--secondary) / 0.8);
}

.btn-outline {
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-hero {
    background-image: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-soft);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
}

.btn-hero:hover {
    opacity: 0.95;
}

.btn-sm {
    height: 2rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    height: 3rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Cards */
.card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1.5rem 1.5rem 0;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.25;
}

/* Forms */
.input {
    height: 2.5rem;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--input));
    background-color: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.input:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.input::placeholder {
    color: hsl(var(--muted-foreground));
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.form-group {
    margin-bottom: 1.25rem;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid hsl(var(--border));
    background-color: hsl(var(--background) / 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    min-height: 4rem;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: hsl(var(--foreground));
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: hsl(var(--foreground));
}

/* Hero section */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid hsl(var(--border));
    background-image: var(--gradient-subtle);
    margin: 2rem 0;
}

.hero-blob {
    position: absolute;
    right: -10%;
    top: -10%;
    width: 60vmax;
    height: 60vmax;
    pointer-events: none;
    background: radial-gradient(600px at var(--x, 50%) var(--y, 50%), hsl(var(--primary) / 0.20), transparent 55%);
    filter: blur(20px);
}

.hero-content {
    display: grid;
    gap: 2.5rem;
    align-items: center;
    padding: 3.5rem 0;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        padding: 5rem 0;
    }
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-title {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 65ch;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-image {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Chat interface */
.chat-container {
    padding: 2.5rem 0;
}

.chat-bubble {
    max-width: 75%;
    border-radius: 1rem;
    padding: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.chat-bubble-user {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    margin-left: auto;
    text-align: right;
}

.chat-bubble-other {
    background-color: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

.chat-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chat-input {
    flex: 1;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
}

.btn-chat-send {
    border-radius: 9999px;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Steps section */
.steps-section {
    padding: 4rem 0;
}

.steps-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.steps-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    background-color: hsl(var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary-foreground));
    font-size: 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-description {
    color: hsl(var(--muted-foreground));
}

/* Dashboard */
.dashboard-container {
    padding: 2.5rem 0;
}

.dashboard-header {
    margin-bottom: 3rem;
}

.dashboard-stats {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat-card {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-title {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.dashboard-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.dashboard-section {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.class-item, .notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.class-info h3, .notification-item p {
    margin: 0;
    font-size: 0.875rem;
}

.class-time {
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
}

.class-type {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.notification-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Teacher components */
.teacher-grid {
    display: grid;
    gap: 1rem;
}

.teacher-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    align-items: flex-start;
}

.teacher-avatar, .teacher-avatar-sm, .teacher-avatar-lg {
    border-radius: 50%;
    object-fit: cover;
}

.teacher-avatar {
    width: 4rem;
    height: 4rem;
}

.teacher-avatar-sm {
    width: 3rem;
    height: 3rem;
}

.teacher-avatar-lg {
    width: 5rem;
    height: 5rem;
}

.teacher-info {
    flex: 1;
}

.teacher-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.teacher-details, .teacher-language {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.teacher-rating {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.teacher-actions {
    display: flex;
    gap: 0.5rem;
}

/* Booking */
.booking-container {
    padding: 2.5rem 0;
}

.booking-header {
    margin-bottom: 2rem;
}

.booking-filters {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 2rem;
}

.filter-select {
    padding: 0.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

.booking-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid hsl(var(--border));
}

.tab-button {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-button.active {
    color: hsl(var(--primary));
    border-bottom-color: hsl(var(--primary));
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.class-result-card {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .class-result-card {
        grid-template-columns: 1fr 2fr;
    }
}

.class-teacher {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.class-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.class-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.class-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.class-type-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.class-type-badge.group {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.class-type-badge.private {
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
}

.class-credits {
    color: hsl(var(--primary));
    font-weight: 500;
    font-size: 0.875rem;
}

.class-slots {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.time-slot {
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover, .time-slot.selected {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

.class-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Payment */
.payment-container {
    padding: 2.5rem 0;
}

.plans-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.plan-card {
    position: relative;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.plan-card.featured {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 1px hsl(var(--primary) / 0.2);
}

.plan-badge {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.plan-header {
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

.plan-detail {
    color: hsl(var(--muted-foreground));
}

.plan-features {
    text-align: left;
    margin-bottom: 2rem;
}

.feature {
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.payment-info {
    margin: 3rem 0;
    text-align: center;
}

.topup-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.payment-security {
    text-align: center;
    margin-top: 3rem;
}

/* Signup */
.signup-container {
    padding: 2.5rem 0;
    max-width: 600px;
    margin: 0 auto;
}

.signup-form-wrapper {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 3rem;
}

.signup-form {
    margin-bottom: 2rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.signup-benefits {
    border-top: 1px solid hsl(var(--border));
    padding-top: 2rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 0.5rem 0;
    color: hsl(var(--muted-foreground));
}

/* Teacher Profile */
.teacher-profile-container {
    padding: 2.5rem 0;
}

.teacher-profile-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 2fr 1fr;
}

@media (max-width: 1024px) {
    .teacher-profile-grid {
        grid-template-columns: 1fr;
    }
}

.teacher-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.teacher-name-lg {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.teacher-specialties {
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.teacher-rating-lg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    color: #fbbf24;
}

.rating-text {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}

.teacher-bio {
    margin-bottom: 2rem;
}

.teacher-bio p {
    margin-bottom: 1rem;
}

.achievements-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.achievement-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
}

.achievement-icon {
    font-size: 1.5rem;
}

.achievement-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.achievement-item p {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* Booking Widget */
.booking-widget {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.calendar-container {
    margin-bottom: 1.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: hsl(var(--primary));
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.calendar-day:hover, .calendar-day.selected {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.calendar-day.disabled {
    color: hsl(var(--muted-foreground));
    cursor: not-allowed;
}

.calendar-day.today {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.time-slots-title {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.booking-options {
    margin-bottom: 1.5rem;
}

.class-type-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin: 0;
}

.radio-label {
    font-size: 0.875rem;
}

.booking-info {
    margin-top: 1rem;
    text-align: center;
}

/* Reviews */
.teacher-reviews {
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.5rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item {
    padding: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reviewer-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.review-stars {
    color: #fbbf24;
    font-size: 0.875rem;
}

.review-text {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.review-date {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* Footer */
.footer {
    border-top: 1px solid hsl(var(--border));
    margin-top: 4rem;
}

.footer-content {
    padding: 2.5rem 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.footer-tagline {
    opacity: 0.8;
}

/* Utilities */
.min-h-screen { min-height: 100vh; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.h-10 { height: 2.5rem; }
.rounded-full { border-radius: 9999px; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }

.story-link {
    position: relative;
    display: inline-block;
    color: hsl(var(--primary));
    text-decoration: none;
}

.story-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: hsl(var(--primary));
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.story-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out both;
}

.animate-scale-in {
    animation: scaleIn 0.2s ease-out both;
}

.animate-enter {
    animation: fadeIn 0.3s ease-out, scaleIn 0.2s ease-out;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid hsl(var(--primary));
}

.toast.error {
    border-left: 4px solid hsl(var(--destructive));
}