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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    position: relative;
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Auth Section */
.auth-section {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-links {
    display: flex;
    gap: 10px;
}

.login-link, .register-link, .cabinet-link, .logout-link {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.login-link {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
    border: 1px solid rgba(233, 30, 99, 0.3);
}

.login-link:hover {
    background: #e91e63;
    color: white;
}

.register-link {
    background: #e91e63;
    color: white;
}

.register-link:hover {
    background: #c2185b;
    transform: translateY(-1px);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-greeting {
    font-weight: 500;
    color: #2c3e50;
}

.cabinet-link {
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    color: white;
}

.cabinet-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.logout-link {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.logout-link:hover {
    background: #6c757d;
    color: white;
}

.admin-link {
    background: linear-gradient(45deg, #17a2b8, #138496);
    color: white;
}

.admin-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

/* Character Limit Notice */
.character-limit-notice {
    background: linear-gradient(45deg, #ff9800, #f57c00);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: center;
}

.character-limit-notice i {
    margin-right: 8px;
}

.character-limit-notice a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.character-limit-notice a:hover {
    text-decoration: none;
}

/* Pro Plus Overlay */
.control-group {
    position: relative;
}

.pro-plus-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
    text-align: center;
}

.pro-plus-overlay i {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 10px;
}

.pro-plus-overlay p {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.pro-plus-overlay small {
    color: #666;
}

.pro-plus-overlay a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
}

.pro-plus-overlay a:hover {
    text-decoration: underline;
}

/* Auth Container */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header i {
    font-size: 3rem;
    color: #e91e63;
    margin-bottom: 15px;
    display: block;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.auth-header p {
    color: #666;
    font-size: 1.1rem;
}

.auth-form {
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-group label i {
    color: #e91e63;
    margin-right: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    background: white;
}

/* reCAPTCHA styling */
.recaptcha-group {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
}

@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.8);
    }
}

.auth-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e8ed;
}

.auth-divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 15px;
    color: #666;
    font-size: 0.9rem;
}

.social-auth {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.google-btn {
    background: #db4437;
    color: white;
}

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

.facebook-btn {
    background: #3b5998;
    color: white;
}

.facebook-btn:hover {
    background: #2d4373;
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    color: #666;
}

.auth-footer p {
    margin-bottom: 10px;
}

.auth-footer a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-message, .success-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Cabinet Styles */
.header-actions {
    position: absolute;
    top: 20px;
    left: 20px;
}

.btn-secondary {
    padding: 10px 20px;
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
}

.cabinet-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cabinet-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.section-header {
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    color: white;
    padding: 20px 30px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.section-header i {
    margin-right: 10px;
}

.section-content {
    padding: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e91e63;
}

.info-item label {
    font-weight: 600;
    color: #2c3e50;
}

.info-item span {
    font-weight: 500;
    color: #666;
}

.balance {
    color: #28a745 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.balance-actions {
    text-align: center;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.current-subscription {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.current-subscription h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subscription-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.subscription-badge.basic {
    background: #6c757d;
    color: white;
}

.subscription-badge.pro {
    background: #007bff;
    color: white;
}

.subscription-badge.pro_plus {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
}

.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.plan-card {
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.plan-card.current {
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.plan-card.pro-plus {
    border-color: #ffd700;
    background: linear-gradient(135deg, #fff9c4 0%, #ffffff 100%);
}

.plan-header {
    text-align: center;
    margin-bottom: 20px;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #e91e63;
}

.plan-price span {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

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

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

.plan-features i.fa-check {
    color: #28a745;
}

.plan-features i.fa-star {
    color: #ffd700;
}

.plan-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-btn:not(.current-plan) {
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    color: white;
}

.plan-btn:not(.current-plan):hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

.plan-btn.current-plan {
    background: #28a745;
    color: white;
    cursor: default;
}

.plan-btn:disabled {
    background: #6c757d;
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

.logo-image {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.auth-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Form Section */
.form-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.input-group label i {
    color: #e91e63;
    margin-right: 8px;
}

#text-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fafafa;
}

#text-input:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    background: white;
}

/* Text alignment classes for textarea */
#text-input.align-left {
    text-align: left;
}

#text-input.align-center {
    text-align: center;
}

#text-input.align-right {
    text-align: right;
}

.character-counter {
    text-align: right;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}

.create-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.create-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

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

.create-btn i {
    margin-right: 8px;
}

/* Controls Grid */
.controls-grid {
    display: grid;
    gap: 25px;
}

.control-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.control-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1rem;
}

.control-group label i {
    color: #e91e63;
    margin-right: 8px;
}

/* Input Styles */
input[type="number"], select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

input[type="number"]:focus, select:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

/* Font and Fill Selectors */
.font-selector, .fill-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.font-selector select, .fill-selector select {
    flex: 1;
}

.view-all-btn {
    padding: 12px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-all-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.font-preview, .fill-preview {
    text-align: center;
    margin-top: 15px;
}

.font-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.font-preview img:hover {
    transform: scale(1.05);
}

/* Alignment Buttons */
.alignment-buttons {
    display: flex;
    gap: 10px;
}

.align-btn {
    flex: 1;
    padding: 12px;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: #666;
}

.align-btn:hover {
    border-color: #e91e63;
    color: #e91e63;
}

.align-btn.active {
    background: #e91e63;
    border-color: #e91e63;
    color: white;
}

/* Slider Containers */
.slider-container {
    margin-top: 10px;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e1e8ed;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e91e63;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(233, 30, 99, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e91e63;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(233, 30, 99, 0.3);
}

.slider-value {
    font-weight: 600;
    color: #e91e63;
    display: block;
    text-align: center;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Preview Section */
.preview-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.preview-container h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.preview-container h3 i {
    color: #e91e63;
    margin-right: 10px;
}

.preview-area {
    width: 100%;
    height: 490px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.preview-placeholder {
    text-align: center;
    color: #6c757d;
}

.preview-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.5;
}

.preview-placeholder p {
    font-size: 1.1rem;
    opacity: 0.7;
}

/* Processing Styles */
.processing-container {
    text-align: center;
    color: #2c3e50;
}

.processing-spinner {
    margin-bottom: 20px;
}

.processing-spinner i {
    font-size: 4rem;
    color: #e91e63;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-container h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.timer-container {
    margin: 20px 0;
}

.timer-circle {
    width: 80px;
    height: 80px;
    border: 4px solid #e1e8ed;
    border-top: 4px solid #e91e63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

.timer-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e91e63;
}

.processing-container p {
    color: #666;
    font-size: 1rem;
}

/* Result Styles */
.result-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.success-message {
    text-align: center;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.success-message i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.success-message h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.success-message p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.result-image {
    width: 100%;
    height: auto;
    max-width: 710px;
    max-height: 465px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.result-image:hover {
    transform: scale(1.02);
}

/* Fullscreen overlay */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.fullscreen-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.close-fullscreen {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: all 0.3s ease;
}

.close-fullscreen:hover {
    background: white;
    transform: scale(1.1);
}

/* Error Styles */
.error-container {
    text-align: center;
    color: #dc3545;
}

.error-container i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.error-container h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.error-container p {
    color: #666;
    margin-bottom: 20px;
}

.retry-btn {
    padding: 12px 24px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Download Button */
.download-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.download-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.download-btn i {
    margin-right: 8px;
}

/* Design Parameters */
.design-parameters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.design-parameters h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

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

.param-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    font-size: 0.9rem;
}

.param-item label {
    font-weight: 600;
    color: #495057;
}

.param-item span {
    color: #e91e63;
    font-weight: 500;
}

@media (max-width: 768px) {
    .params-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery Styles */
.gallery-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.fills-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.font-card img, .fill-card img {
    width: 100%;
    height: auto;
    display: block;
}

.font-info, .fill-info {
    padding: 20px;
    text-align: center;
}

.font-info h3, .fill-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.select-font-btn, .select-fill-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #e91e63, #9c27b0);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-font-btn:hover, .select-fill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .params-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .auth-section {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .user-menu {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .header-actions {
        position: static;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo-image {
        height: 60px;
    }
    
    .auth-logo {
        height: 50px;
    }
    
    .form-section, .preview-section, .gallery-content {
        padding: 20px;
    }
    
    .font-selector, .fill-selector {
        flex-direction: column;
    }
    
    .alignment-buttons {
        flex-direction: column;
    }
    
    .slider-container {
        flex-direction: column;
        align-items: stretch;
        margin-top: 10px;
    }
    
    .slider-value {
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .fills-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .social-auth {
        flex-direction: column;
    }
    
    .subscription-plans {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .preview-area {
        height: 300px;
    }
    
    .preview-placeholder i {
        font-size: 2rem;
    }
    
    .fullscreen-container {
        max-width: 95vw;
        max-height: 95vh;
    }
}